summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/XFileSharingPro.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-19 11:44:49 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-19 11:44:49 +0200
commit56389e28ba5d2f5658278bc7f486d73be747f135 (patch)
treeac51ad216508487294b15fcaebc813b3add5c393 /module/plugins/hooks/XFileSharingPro.py
parentCode cosmetics (3) (diff)
downloadpyload-56389e28ba5d2f5658278bc7f486d73be747f135.tar.xz
Rename self.core to self.pyload (plugins only)
Diffstat (limited to 'module/plugins/hooks/XFileSharingPro.py')
-rw-r--r--module/plugins/hooks/XFileSharingPro.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hooks/XFileSharingPro.py b/module/plugins/hooks/XFileSharingPro.py
index 5829378d8..c82308bb1 100644
--- a/module/plugins/hooks/XFileSharingPro.py
+++ b/module/plugins/hooks/XFileSharingPro.py
@@ -47,7 +47,7 @@ class XFileSharingPro(Hook):
# self.load_pattern()
- def init(self):
+ # def init(self):
# self.event_map = {'pluginConfigChanged': "plugin_config_changed"}
@@ -89,7 +89,7 @@ class XFileSharingPro(Hook):
pattern = self.regexp[type][1] % match_list.replace('.', '\.')
- dict = self.core.pluginManager.plugins[type][plugin]
+ dict = self.pyload.pluginManager.plugins[type][plugin]
dict['pattern'] = pattern
dict['re'] = re.compile(pattern)
@@ -97,7 +97,7 @@ class XFileSharingPro(Hook):
def _unload(self, type, plugin):
- dict = self.core.pluginManager.plugins[type][plugin]
+ dict = self.pyload.pluginManager.plugins[type][plugin]
dict['pattern'] = r'^unmatchable$'
dict['re'] = re.compile(dict['pattern'])
@@ -110,7 +110,7 @@ class XFileSharingPro(Hook):
def unload_hoster(self, hoster):
- hdict = self.core.pluginManager.hosterPlugins[hoster]
+ hdict = self.pyload.pluginManager.hosterPlugins[hoster]
if "new_name" in hdict and hdict['new_name'] == "XFileSharingPro":
if "module" in hdict:
hdict.pop('module', None)