summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-12-31 20:17:11 +0100
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-12-31 20:17:11 +0100
commit97bcf807d1f396cd9eb943aaa0439a07c64cbd3b (patch)
treef0cd7a169b4c70347842b88cfe70bb9bddc9ffab
parentSpare code fixed + isdownload -> isresource (diff)
downloadpyload-97bcf807d1f396cd9eb943aaa0439a07c64cbd3b.tar.xz
[Hoster] Update
-rw-r--r--module/plugins/internal/Hoster.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py
index d164a9557..fbb675281 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.50"
+ __version__ = "0.51"
__status__ = "stable"
__pattern__ = r'^unmatchable$'
@@ -139,8 +139,8 @@ class Hoster(Base):
self.pyload.hookManager.dispatchEvent("download_processed", self.pyfile)
try:
- unfinished = any(fdata['status'] is 3 for fid, fdata in pypack.getChildren().items()
- if fid is not self.pyfile.id)
+ unfinished = any(fdata['status'] == 3 for fid, fdata in pypack.getChildren().items()
+ if fid != self.pyfile.id)
if unfinished:
return
@@ -176,7 +176,7 @@ class Hoster(Base):
header = self.load(url, just_header=True)
- if not redirect or header.get('connection') is "close":
+ if not redirect or header.get('connection') == "close":
resumable = False
if 'content-disposition' in header:
@@ -390,7 +390,7 @@ class Hoster(Base):
if traffic is None:
return True
- elif traffic is -1:
+ elif traffic == -1:
return False
else: