diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-09 21:22:04 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-09 21:22:04 +0100 |
commit | 7124a00dccf36816aff73b3834131e7e392a0c3c (patch) | |
tree | f731f1d10fce7810bad2f5b4fd57ee6c390d324e /module/plugins | |
parent | [MultiHook] Fix encoding in _pluginSet (diff) | |
download | pyload-7124a00dccf36816aff73b3834131e7e392a0c3c.tar.xz |
[SimpleHoster] Fix https://github.com/pyload/pyload/issues/1022
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index 2a6624e10..1a2961167 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -183,7 +183,7 @@ def secondsToMidnight(gmt=0): class SimpleHoster(Hoster): __name__ = "SimpleHoster" __type__ = "hoster" - __version__ = "0.91" + __version__ = "0.92" __pattern__ = r'^unmatchable$' @@ -274,9 +274,10 @@ class SimpleHoster(Hoster): online = False try: - info['pattern'] = re.match(cls.__pattern__, url).groupdict() #: pattern groups will be saved here, please save api stuff to info['api'] + info['pattern'] = re.match(cls.__pattern__, url).groupdict() #: pattern groups will be saved here + except Exception: - pass + info['pattern'] = {} if not html: if not url: @@ -327,7 +328,7 @@ class SimpleHoster(Hoster): else: online = True - if 'pattern' in info and not info['pattern']: + if not info['pattern']: info.pop('pattern', None) if online: |