diff options
author | 2015-10-18 18:55:20 +0200 | |
---|---|---|
committer | 2015-10-18 18:55:20 +0200 | |
commit | 54025794ebf707ba0c0f2840d5364b0b380d17a9 (patch) | |
tree | 5844b0cb987d4f62b8faf2e8984268793a2ed653 /module/plugins/crypter/TusfilesNetFolder.py | |
parent | Update containers (diff) | |
download | pyload-54025794ebf707ba0c0f2840d5364b0b380d17a9.tar.xz |
Update crypters
Diffstat (limited to 'module/plugins/crypter/TusfilesNetFolder.py')
-rw-r--r-- | module/plugins/crypter/TusfilesNetFolder.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/crypter/TusfilesNetFolder.py b/module/plugins/crypter/TusfilesNetFolder.py index 640b4bdfb..7066d51ed 100644 --- a/module/plugins/crypter/TusfilesNetFolder.py +++ b/module/plugins/crypter/TusfilesNetFolder.py @@ -14,7 +14,7 @@ class TusfilesNetFolder(XFSCrypter): __status__ = "testing" __pattern__ = r'https?://(?:www\.)?tusfiles\.net/go/(?P<ID>\w+)' - __config__ = [("activated", "bool", "Activated", True), + __config__ = [("activated" , "bool", "Activated" , True), ("use_subfolder" , "bool", "Save package to subfolder" , True), ("subfolder_per_pack", "bool", "Create a subfolder for each package", True)] @@ -35,6 +35,7 @@ class TusfilesNetFolder(XFSCrypter): def handle_pages(self, pyfile): pages = re.search(self.PAGES_PATTERN, self.html) + if pages: pages = int(math.ceil(int(pages.group('pages')) / 25.0)) else: @@ -42,7 +43,7 @@ class TusfilesNetFolder(XFSCrypter): for p in xrange(2, pages + 1): self.html = self.load_page(p) - self.links += self.get_links() + self.urls.append(self.get_links()) getInfo = create_getInfo(TusfilesNetFolder) |