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, 8 insertions, 7 deletions
diff --git a/module/plugins/hoster/TusfilesNet.py b/module/plugins/hoster/TusfilesNet.py
index 6021a4c30..8fadb41c3 100644
--- a/module/plugins/hoster/TusfilesNet.py
+++ b/module/plugins/hoster/TusfilesNet.py
@@ -1,13 +1,15 @@
# -*- coding: utf-8 -*-
from module.network.HTTPRequest import BadHeader
+from module.plugins.internal.Plugin import Retry
from module.plugins.internal.XFSHoster import XFSHoster, create_getInfo
class TusfilesNet(XFSHoster):
__name__ = "TusfilesNet"
__type__ = "hoster"
- __version__ = "0.10"
+ __version__ = "0.12"
+ __status__ = "testing"
__pattern__ = r'https?://(?:www\.)?tusfiles\.net/\w{12}'
@@ -18,21 +20,20 @@ class TusfilesNet(XFSHoster):
INFO_PATTERN = r'\](?P<N>.+) - (?P<S>[\d.,]+) (?P<U>[\w^_]+)\['
- OFFLINE_PATTERN = r'>File Not Found|<Title>TusFiles - Fast Sharing Files!|The file you are trying to download is no longer available'
def setup(self):
- self.chunkLimit = -1
+ self.chunk_limit = -1
self.multiDL = True
- self.resumeDownload = True
+ self.resume_download = True
- def downloadLink(self, link, disposition=True):
+ def download(self, url, *args, **kwargs):
try:
- return super(TusfilesNet, self).downloadLink(link, disposition)
+ 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")