diff options
author | 2015-12-31 15:40:01 +0100 | |
---|---|---|
committer | 2015-12-31 15:40:01 +0100 | |
commit | 3f4a19e7869afb0c856ccffc1124339899fd464b (patch) | |
tree | bb07fdc01379ff977f5c8843accaa4749d29bad5 /module/plugins/hoster | |
parent | [Addon] Fix download_finished call (diff) | |
download | pyload-3f4a19e7869afb0c856ccffc1124339899fd464b.tar.xz |
Spare code fixed + isdownload -> isresource
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/GoogledriveCom.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/Http.py | 2 | ||||
-rw-r--r-- | module/plugins/hoster/TusfilesNet.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/GoogledriveCom.py b/module/plugins/hoster/GoogledriveCom.py index 659b088c2..617a56c54 100644 --- a/module/plugins/hoster/GoogledriveCom.py +++ b/module/plugins/hoster/GoogledriveCom.py @@ -48,7 +48,7 @@ class GoogledriveCom(SimpleHoster): return link = self.fixurl(m.group(1), "https://docs.google.com/") - dl = self.isdownload(link) + dl = self.isresource(link) if dl: self.link = dl diff --git a/module/plugins/hoster/Http.py b/module/plugins/hoster/Http.py index f324ee986..9d03b189b 100644 --- a/module/plugins/hoster/Http.py +++ b/module/plugins/hoster/Http.py @@ -29,7 +29,7 @@ class Http(Hoster): url = re.sub(r'^(jd|py)', "http", pyfile.url) netloc = urlparse.urlparse(url).netloc - link = self.isdownload(url) + link = self.isresource(url) if not link: return diff --git a/module/plugins/hoster/TusfilesNet.py b/module/plugins/hoster/TusfilesNet.py index cbab4e856..3bc5b104a 100644 --- a/module/plugins/hoster/TusfilesNet.py +++ b/module/plugins/hoster/TusfilesNet.py @@ -40,6 +40,6 @@ class TusfilesNet(XFSHoster): return super(TusfilesNet, self).download(url, *args, **kwargs) except BadHeader, e: - if e.code is 503: + if e.code == 503: self.multiDL = False raise Retry("503") |