summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2013-11-05 12:00:31 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2013-11-05 12:00:31 +0100
commitd7e4c8ecc7291291f26e4cecaf15b200e1374efc (patch)
tree9e0ba9e0c8cdf02763cf6b22932414e73af36b6a
parentNew multi-hoster: RPNetBiz (diff)
downloadpyload-d7e4c8ecc7291291f26e4cecaf15b200e1374efc.tar.xz
Hoster: TusfilesNet limitDL policy
-rw-r--r--module/plugins/hoster/TusfilesNet.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/module/plugins/hoster/TusfilesNet.py b/module/plugins/hoster/TusfilesNet.py
index a155439b2..e4a64cfdc 100644
--- a/module/plugins/hoster/TusfilesNet.py
+++ b/module/plugins/hoster/TusfilesNet.py
@@ -13,8 +13,17 @@ class TusfilesNet(XFileSharingPro):
FILE_INFO_PATTERN = r'<li>(?P<N>[^<]+)</li>\s+<li><b>Size:</b> <small>(?P<S>[\d.]+) (?P<U>\w+)</small></li>'
FILE_OFFLINE_PATTERN = r'The file you were looking for could not be found'
-
HOSTER_NAME = "tusfiles.net"
+ def setup(self):
+ self.chunkLimit = 1
+ self.resumeDownload = self.multiDL = True
+ if self.premium:
+ self.limitDL = 5
+ elif self.account:
+ self.limitDL = 3
+ else:
+ self.limitDL = 2
+
getInfo = create_getInfo(TusfilesNet)