summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-07 18:46:53 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-07 18:46:53 +0100
commitb921b216c43095e9ce424bcca3448cdbe874467b (patch)
tree9c6fc031cfe8f7a212a2c76c9c9e86d9259e0b9a /module/plugins/hoster
parentMerge pull request #372 from jorisv83/movreel (diff)
parentHoster: TusfilesNet limitDL policy (diff)
downloadpyload-b921b216c43095e9ce424bcca3448cdbe874467b.tar.xz
Merge pull request #370 from vuolter/s/hoster/TusfilesNet
Hoster: TusfilesNet limitDL policy
Diffstat (limited to 'module/plugins/hoster')
-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)