From fe5578fe1a78726aa8358191cb042276cee3f983 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 20 Oct 2015 19:16:11 +0200 Subject: Code cosmetics --- module/plugins/internal/Hoster.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/internal/Hoster.py') diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py index 60a7e7779..c247fa5e3 100644 --- a/module/plugins/internal/Hoster.py +++ b/module/plugins/internal/Hoster.py @@ -13,7 +13,7 @@ from module.plugins.internal.utils import encode, exists, fixurl, fs_join, parse class Hoster(Base): __name__ = "Hoster" __type__ = "hoster" - __version__ = "0.41" + __version__ = "0.42" __status__ = "testing" __pattern__ = r'^unmatchable$' @@ -126,10 +126,10 @@ class Hoster(Base): location = self.fixurl(header.get('location'), url) code = header.get('code') - if code is 302: + if code == 302: link = location - elif code is 301: + elif code == 301: url = location if redirect: continue -- cgit v1.2.3