From 00277a73a3754a58d1e09b44348a75e0dfaa5f61 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 29 Nov 2014 00:47:04 +0100 Subject: [SimpleHoster] Fix _getDirectLink (2) --- module/plugins/internal/SimpleHoster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module') 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$' -- cgit v1.2.3