diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-04 20:24:30 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-04 20:24:30 +0200 |
commit | 5db85c41e9f92b35d71396f8bf12ad84f37127f6 (patch) | |
tree | 09a6112406b4260079582b30e3239c762b4038b3 /module/plugins/hooks/XFileSharingPro.py | |
parent | Fixpack (3) (diff) | |
download | pyload-5db85c41e9f92b35d71396f8bf12ad84f37127f6.tar.xz |
Small code cosmetics
Diffstat (limited to 'module/plugins/hooks/XFileSharingPro.py')
-rw-r--r-- | module/plugins/hooks/XFileSharingPro.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/module/plugins/hooks/XFileSharingPro.py b/module/plugins/hooks/XFileSharingPro.py index 70bafba67..a96074328 100644 --- a/module/plugins/hooks/XFileSharingPro.py +++ b/module/plugins/hooks/XFileSharingPro.py @@ -23,9 +23,9 @@ class XFileSharingPro(Hook): __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] - regexp = {'hoster' : (r'https?://(?:www\.)?(?:\w+\.)*?(?P<DOMAIN>(?:[\d.]+|[\w\-^_]{3,}(?:\.[a-zA-Z]{2,}){1,2})(?:\:\d+)?)/(?:embed-)?\w{12}(?:\W|$)', + regexp = {'hoster' : (r'https?://(?:www\.)?(?:\w+\.)*?(?P<DOMAIN>(?:[\d.]+|[\w-^_]{3,}(?:\.[a-zA-Z]{2,}){1,2})(?:\:\d+)?)/(?:embed-)?\w{12}(?:\W|$)', r'https?://(?:[^/]+\.)?(?P<DOMAIN>%s)/(?:embed-)?\w+'), - 'crypter': (r'https?://(?:www\.)?(?:\w+\.)*?(?P<DOMAIN>(?:[\d.]+|[\w\-^_]{3,}(?:\.[a-zA-Z]{2,}){1,2})(?:\:\d+)?)/(?:user|folder)s?/\w+', + 'crypter': (r'https?://(?:www\.)?(?:\w+\.)*?(?P<DOMAIN>(?:[\d.]+|[\w-^_]{3,}(?:\.[a-zA-Z]{2,}){1,2})(?:\:\d+)?)/(?:user|folder)s?/\w+', r'https?://(?:[^/]+\.)?(?P<DOMAIN>%s)/(?:user|folder)s?/\w+')} BUILTIN_HOSTERS = [#WORKING HOSTERS: @@ -46,14 +46,6 @@ class XFileSharingPro(Hook): BUILTIN_CRYPTERS = ["junocloud.me", "rapidfileshare.net"] - # def plugin_config_changed(self, plugin, name, value): - # self.load_pattern() - - - # def init(self): - # self.event_map = {'pluginConfigChanged': "plugin_config_changed"} - - def activate(self): self.load_pattern() |