diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-29 00:29:15 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-29 00:29:15 +0100 |
commit | 42bb9542bb2dfeafcf98630cf4a13a661a060398 (patch) | |
tree | 2dde9ece1ae04947923221e91b18481adf899efa /module | |
parent | [Captcha9kw] Option "Captcha per minute" (thx stefanos) (diff) | |
download | pyload-42bb9542bb2dfeafcf98630cf4a13a661a060398.tar.xz |
[SimpleHoster] Fix _getDirectLink
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index 529abce9a..bdd84b74b 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -117,7 +117,7 @@ def _getDirectLink(self, url): if not 'location' in header or not header['location']: return "" - if header['code'] != 302 or 'content-type' not in header or header['content-type'] != "text/plain": + if header['code'] != 302 or 'content-type' in header and header['content-type'] != "text/plain": return "" return header['location'] @@ -126,7 +126,7 @@ def _getDirectLink(self, url): class SimpleHoster(Hoster): __name__ = "SimpleHoster" __type__ = "hoster" - __version__ = "0.64" + __version__ = "0.65" __pattern__ = r'^unmatchable$' |