diff options
| author | 2015-01-13 22:09:47 +0100 | |
|---|---|---|
| committer | 2015-01-13 22:09:47 +0100 | |
| commit | 114542939a9ccc0d93e120d590f81a4a0f2ab809 (patch) | |
| tree | 15fe662af3fb8e25e9a7a741e5f8505ee3c97639 | |
| parent | [SimpleHoster] Fix https://github.com/pyload/pyload/issues/1039 (diff) | |
| download | pyload-114542939a9ccc0d93e120d590f81a4a0f2ab809.tar.xz | |
[SimpleHoster] Fix https://github.com/pyload/pyload/issues/1038
| -rw-r--r-- | module/plugins/internal/SimpleHoster.py | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index 0c8d7c5ae..3f14ca711 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -189,7 +189,7 @@ def secondsToMidnight(gmt=0):  class SimpleHoster(Hoster):      __name__    = "SimpleHoster"      __type__    = "hoster" -    __version__ = "0.97" +    __version__ = "0.98"      __pattern__ = r'^unmatchable$' @@ -334,9 +334,6 @@ class SimpleHoster(Hoster):                      else:                          online = True -        if not info['pattern']: -            info.pop('pattern', None) -          if online:              info['status'] = 2 @@ -357,6 +354,9 @@ class SimpleHoster(Hoster):                  hashtype = info['pattern']['T'] if 'T' in info['pattern'] else "hash"                  info[hashtype] = info['pattern']['H'] +        if not info['pattern']: +            info.pop('pattern', None) +          return info | 
