diff options
Diffstat (limited to 'module')
| -rw-r--r-- | module/plugins/hooks/XFileSharingPro.py | 12 | ||||
| -rw-r--r-- | module/plugins/internal/SimpleHoster.py | 4 | 
2 files changed, 8 insertions, 8 deletions
| diff --git a/module/plugins/hooks/XFileSharingPro.py b/module/plugins/hooks/XFileSharingPro.py index 1782456e1..54d97de53 100644 --- a/module/plugins/hooks/XFileSharingPro.py +++ b/module/plugins/hooks/XFileSharingPro.py @@ -8,7 +8,7 @@ from module.plugins.Hook import Hook  class XFileSharingPro(Hook):      __name__ = "XFileSharingPro"      __type__ = "hook" -    __version__ = "0.17" +    __version__ = "0.18"      __config__ = [("activated", "bool", "Activated", True),                    ("match_hoster", "Always;Always except excluded;Listed only", "Hoster match", "Always except excluded"), @@ -49,13 +49,13 @@ class XFileSharingPro(Hook):      def loadPattern(self): -        regex = {'hoster'  = (r'https?://(?!(?:www\.)?(?:%s))(?:www\.)?([\w^_]+(?:\.[a-zA-Z]{2,})+(?:\:\d+)?)/(?:embed-)?\w{12}', -                              r'https?://(?:[^/]+\.)?(%s)/(?:embed-)?\w{12}\W?'), -                 'crypter' = (r'https?://(?!(?:www\.)?(?:%s))(?:www\.)?([\w^_]+(?:\.[a-zA-Z]{2,})+(?:\:\d+)?)/(?:user|folder)s?/\w+', -                              r'https?://(?:[^/]+\.)?(%s)/(?:user|folder)s?/\w+')} +        regex = {'hoster' : (r'https?://(?!(?:www\.)?(?:%s))(?:www\.)?([\w^_]+(?:\.[a-zA-Z]{2,})+(?:\:\d+)?)/(?:embed-)?\w{12}', +                             r'https?://(?:[^/]+\.)?(%s)/(?:embed-)?\w{12}\W?'), +                 'crypter': (r'https?://(?!(?:www\.)?(?:%s))(?:www\.)?([\w^_]+(?:\.[a-zA-Z]{2,})+(?:\:\d+)?)/(?:user|folder)s?/\w+', +                             r'https?://(?:[^/]+\.)?(%s)/(?:user|folder)s?/\w+')}          for type, plugin in (("hoster", "XFileSharingPro"), ("crypter", "XFileSharingProFolder")): -            match = self.getConfig('match_%ss' % type) +            match = self.getConfig('match_%s' % type)              include_set = self.getConfigSet('include_%ss' % type)              exclude_set = self.getConfigSet('exclude_%ss' % type) diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index fe9b2d523..c62ef53b4 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -9,7 +9,7 @@ from module.network.CookieJar import CookieJar  from module.network.RequestFactory import getURL  from module.plugins.Hoster import Hoster  from module.plugins.Plugin import Fail -reasonfrom module.utils import fixup, html_unescape, parseFileSize +from module.utils import fixup, html_unescape, parseFileSize  def replace_patterns(string, ruleslist): @@ -143,7 +143,7 @@ def timestamp():  class SimpleHoster(Hoster):      __name__ = "SimpleHoster"      __type__ = "hoster" -    __version__ = "0.39" +    __version__ = "0.40"      __pattern__ = None | 
