summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/QuickshareCzFolder.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/crypter/QuickshareCzFolder.py')
-rw-r--r--module/plugins/crypter/QuickshareCzFolder.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/module/plugins/crypter/QuickshareCzFolder.py b/module/plugins/crypter/QuickshareCzFolder.py
index a8f97cf77..b8db5d88c 100644
--- a/module/plugins/crypter/QuickshareCzFolder.py
+++ b/module/plugins/crypter/QuickshareCzFolder.py
@@ -22,13 +22,10 @@ class QuickshareCzFolder(Crypter):
def decrypt(self, pyfile):
html = self.load(pyfile.url)
- new_links = []
found = re.search(self.FOLDER_PATTERN, html, re.DOTALL)
if not found:
self.fail("Parse error (FOLDER)")
- new_links.extend(re.findall(self.LINK_PATTERN, found.group(1)))
+ self.urls.extend(re.findall(self.LINK_PATTERN, found.group(1)))
- if new_links:
- self.core.files.addLinks(new_links, pyfile.package().id)
- else:
+ if not self.urls:
self.fail('Could not extract any links')