From d7e4c8ecc7291291f26e4cecaf15b200e1374efc Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 5 Nov 2013 12:00:31 +0100 Subject: Hoster: TusfilesNet limitDL policy --- module/plugins/hoster/TusfilesNet.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'module/plugins/hoster') 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'
  • (?P[^<]+)
  • \s+
  • Size: (?P[\d.]+) (?P\w+)
  • ' 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) -- cgit v1.2.3