summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/TusfilesNetFolder.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-18 13:50:09 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-18 13:50:09 +0200
commitbe5a34a74c7126dd9606e646cd879369dac7404d (patch)
tree49c251ee5309221848de6fd430660bafc00a5a3f /module/plugins/crypter/TusfilesNetFolder.py
parentNew account XFileSharingPro (diff)
downloadpyload-be5a34a74c7126dd9606e646cd879369dac7404d.tar.xz
Convert some crypters to use XFSPCrypter instead SimpleCrypter
Diffstat (limited to 'module/plugins/crypter/TusfilesNetFolder.py')
-rw-r--r--module/plugins/crypter/TusfilesNetFolder.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/module/plugins/crypter/TusfilesNetFolder.py b/module/plugins/crypter/TusfilesNetFolder.py
index 1d804c2a8..fb0842b63 100644
--- a/module/plugins/crypter/TusfilesNetFolder.py
+++ b/module/plugins/crypter/TusfilesNetFolder.py
@@ -4,13 +4,13 @@ import math
import re
from urlparse import urljoin
-from module.plugins.internal.SimpleCrypter import SimpleCrypter
+from module.plugins.internal.XFSPCrypter import XFSPCrypter
-class TusfilesNetFolder(SimpleCrypter):
+class TusfilesNetFolder(XFSPCrypter):
__name__ = "TusfilesNetFolder"
__type__ = "crypter"
- __version__ = "0.03"
+ __version__ = "0.04"
__pattern__ = r'https?://(?:www\.)?tusfiles\.net/go/(?P<ID>\w+)'
@@ -20,8 +20,8 @@ class TusfilesNetFolder(SimpleCrypter):
("stickell", "l.stickell@yahoo.it")]
- LINK_PATTERN = r'<TD align=left><a href="(.*?)">'
- TITLE_PATTERN = r'<Title>.*?\: (.+) folder</Title>'
+ HOSTER_NAME = "tusfiles.net"
+
PAGES_PATTERN = r'>\((\d+) \w+\)<'
URL_REPLACEMENTS = [(__pattern__, r'https://www.tusfiles.net/go/\g<ID>/')]
@@ -30,6 +30,7 @@ class TusfilesNetFolder(SimpleCrypter):
def loadPage(self, page_n):
return self.load(urljoin(self.pyfile.url, str(page_n)), decode=True)
+
def handleMultiPages(self):
pages = re.search(self.PAGES_PATTERN, self.html)
if pages: