summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/SimpleHoster.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-29 00:47:04 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-29 00:47:04 +0100
commit00277a73a3754a58d1e09b44348a75e0dfaa5f61 (patch)
tree7692d99f1ae0dda69468ba1e8908a09df2779404 /module/plugins/internal/SimpleHoster.py
parent[SimpleHoster] Fix _getDirectLink (diff)
downloadpyload-00277a73a3754a58d1e09b44348a75e0dfaa5f61.tar.xz
[SimpleHoster] Fix _getDirectLink (2)
Diffstat (limited to 'module/plugins/internal/SimpleHoster.py')
-rw-r--r--module/plugins/internal/SimpleHoster.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index bdd84b74b..274d95154 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' in header and header['content-type'] != "text/plain":
+ if header['code'] != 302 or 'content-type' in header and "text/plain" not in header['content-type']:
return ""
return header['location']
@@ -126,7 +126,7 @@ def _getDirectLink(self, url):
class SimpleHoster(Hoster):
__name__ = "SimpleHoster"
__type__ = "hoster"
- __version__ = "0.65"
+ __version__ = "0.66"
__pattern__ = r'^unmatchable$'