diff options
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") |