summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-12-31 01:58:42 +0100
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-12-31 01:58:42 +0100
commit5b235ebfc55cc723a15dfb1e54ac9ec7a8893364 (patch)
treeccd033c9065febc0a3dd0728485f4dee4a9838ab /module
parent[ShareonlineBiz] Update (diff)
downloadpyload-5b235ebfc55cc723a15dfb1e54ac9ec7a8893364.tar.xz
fix #2243
Diffstat (limited to 'module')
-rw-r--r--module/plugins/internal/Hoster.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py
index a87066502..7cc3b3c2c 100644
--- a/module/plugins/internal/Hoster.py
+++ b/module/plugins/internal/Hoster.py
@@ -34,7 +34,7 @@ if not hasattr(__builtin__.property, "setter"):
class Hoster(Base):
__name__ = "Hoster"
__type__ = "hoster"
- __version__ = "0.49"
+ __version__ = "0.50"
__status__ = "stable"
__pattern__ = r'^unmatchable$'
@@ -183,10 +183,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