summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-09 21:22:04 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-09 21:22:04 +0100
commit7124a00dccf36816aff73b3834131e7e392a0c3c (patch)
treef731f1d10fce7810bad2f5b4fd57ee6c390d324e
parent[MultiHook] Fix encoding in _pluginSet (diff)
downloadpyload-7124a00dccf36816aff73b3834131e7e392a0c3c.tar.xz
[SimpleHoster] Fix https://github.com/pyload/pyload/issues/1022
-rw-r--r--module/plugins/internal/SimpleHoster.py9
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: