From 7124a00dccf36816aff73b3834131e7e392a0c3c Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 9 Jan 2015 21:22:04 +0100 Subject: [SimpleHoster] Fix https://github.com/pyload/pyload/issues/1022 --- module/plugins/internal/SimpleHoster.py | 9 +++++---- 1 file 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: -- cgit v1.2.3