summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/TusfilesNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/crypter/TusfilesNet.py')
-rw-r--r--module/plugins/crypter/TusfilesNet.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/module/plugins/crypter/TusfilesNet.py b/module/plugins/crypter/TusfilesNet.py
index 88ff941b2..94b6bbb5d 100644
--- a/module/plugins/crypter/TusfilesNet.py
+++ b/module/plugins/crypter/TusfilesNet.py
@@ -4,13 +4,13 @@ import math
import re
from urlparse import urljoin
-from pyload.plugin.internal.XFSCrypter import XFSCrypter
+from module.plugins.internal.XFSCrypter import XFSCrypter, create_getInfo
class TusfilesNet(XFSCrypter):
__name__ = "TusfilesNet"
__type__ = "crypter"
- __version__ = "0.07"
+ __version__ = "0.08"
__pattern__ = r'https?://(?:www\.)?tusfiles\.net/go/(?P<ID>\w+)'
__config__ = [("use_subfolder", "bool", "Save package to subfolder", True),
@@ -22,8 +22,6 @@ class TusfilesNet(XFSCrypter):
("stickell", "l.stickell@yahoo.it")]
- HOSTER_DOMAIN = "tusfiles.net"
-
PAGES_PATTERN = r'>\((\d+) \w+\)<'
URL_REPLACEMENTS = [(__pattern__ + ".*", r'https://www.tusfiles.net/go/\g<ID>/')]
@@ -33,7 +31,7 @@ class TusfilesNet(XFSCrypter):
return self.load(urljoin(self.pyfile.url, str(page_n)), decode=True)
- def handleMultiPages(self):
+ def handlePages(self, pyfile):
pages = re.search(self.PAGES_PATTERN, self.html)
if pages:
pages = int(math.ceil(int(pages.group('pages')) / 25.0))
@@ -43,3 +41,6 @@ class TusfilesNet(XFSCrypter):
for p in xrange(2, pages + 1):
self.html = self.loadPage(p)
self.links += self.getLinks()
+
+
+getInfo = create_getInfo(TusfilesNetFolder)