summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/TusfilesNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/TusfilesNet.py')
-rw-r--r--module/plugins/hoster/TusfilesNet.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/module/plugins/hoster/TusfilesNet.py b/module/plugins/hoster/TusfilesNet.py
index a4e352956..9d0a86fe9 100644
--- a/module/plugins/hoster/TusfilesNet.py
+++ b/module/plugins/hoster/TusfilesNet.py
@@ -1,12 +1,13 @@
# -*- coding: utf-8 -*-
+from module.network.HTTPRequest import BadHeader
from module.plugins.internal.XFSHoster import XFSHoster, create_getInfo
class TusfilesNet(XFSHoster):
__name__ = "TusfilesNet"
__type__ = "hoster"
- __version__ = "0.08"
+ __version__ = "0.09"
__pattern__ = r'https?://(?:www\.)?tusfiles\.net/\w{12}'
@@ -23,13 +24,19 @@ class TusfilesNet(XFSHoster):
def setup(self):
- self.multiDL = False
self.chunkLimit = -1
+ self.multiDL = True
self.resumeDownload = True
- def handlePremium(self):
- return self.handleFree()
+ def downloadLink(self, link):
+ try:
+ return super(TusfilesNet, self).downloadLink(link)
+
+ except BadHeader, e:
+ if e.code is 503:
+ self.multiDL = False
+ raise Retry("503")
getInfo = create_getInfo(TusfilesNet)