summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/CzshareComFolder.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-16 00:46:26 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-16 00:46:26 +0200
commita1e78f33dc2b0b6777fdcbc415673f3965b25542 (patch)
tree4f2f0c9d7592482409740be8647f8f6849d30681 /module/plugins/crypter/CzshareComFolder.py
parent[StealthTo] Mark dead (diff)
downloadpyload-a1e78f33dc2b0b6777fdcbc415673f3965b25542.tar.xz
Prefer self.urls and self.packages for adding links
Diffstat (limited to 'module/plugins/crypter/CzshareComFolder.py')
-rw-r--r--module/plugins/crypter/CzshareComFolder.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/module/plugins/crypter/CzshareComFolder.py b/module/plugins/crypter/CzshareComFolder.py
index c60d5a87d..e0c311ba8 100644
--- a/module/plugins/crypter/CzshareComFolder.py
+++ b/module/plugins/crypter/CzshareComFolder.py
@@ -17,19 +17,15 @@ class CzshareComFolder(Crypter):
FOLDER_PATTERN = r'<tr class="subdirectory">\s*<td>\s*<table>(.*?)</table>'
LINK_PATTERN = r'<td class="col2"><a href="([^"]+)">info</a></td>'
- #NEXT_PAGE_PATTERN = r'<a class="next " href="/([^"]+)">&nbsp;</a>'
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)))
- if new_links:
- self.core.files.addLinks(new_links, pyfile.package().id)
- else:
+ self.urls.extend(re.findall(self.LINK_PATTERN, found.group(1)))
+ if not self.urls:
self.fail('Could not extract any links')