summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/MultiloadCz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-04-11 12:26:05 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2014-04-11 12:26:05 +0200
commit4d978dedd16418a4e7d8c81bd819a6a5fa432057 (patch)
treea347dae567c7e254b41df58e029f7bccfd5603a8 /module/plugins/crypter/MultiloadCz.py
parentFix __pattern__ www (diff)
downloadpyload-4d978dedd16418a4e7d8c81bd819a6a5fa432057.tar.xz
Use pyfile instead self.pyfile
Merges vuolter/pyload@b7f6e2e
Diffstat (limited to 'module/plugins/crypter/MultiloadCz.py')
-rw-r--r--module/plugins/crypter/MultiloadCz.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/crypter/MultiloadCz.py b/module/plugins/crypter/MultiloadCz.py
index 6cc9a1171..d51a7821b 100644
--- a/module/plugins/crypter/MultiloadCz.py
+++ b/module/plugins/crypter/MultiloadCz.py
@@ -19,10 +19,10 @@ class MultiloadCz(Crypter):
LINK_PATTERN = r'<p class="manager-server"><strong>([^<]+)</strong></p><p class="manager-linky"><a href="([^"]+)">'
def decrypt(self, pyfile):
- self.html = self.load(self.pyfile.url, decode=True)
+ self.html = self.load(pyfile.url, decode=True)
new_links = []
- if re.match(self.__pattern__, self.pyfile.url).group(1) == "slozka":
+ if re.match(self.__pattern__, pyfile.url).group(1) == "slozka":
found = re.search(self.FOLDER_PATTERN, self.html)
if found is not None:
new_links.extend(found.group(1).split())
@@ -37,6 +37,6 @@ class MultiloadCz(Crypter):
new_links.extend([x[1] for x in found if x[0] not in ignored_set])
if new_links:
- self.core.files.addLinks(new_links, self.pyfile.package().id)
+ self.core.files.addLinks(new_links, pyfile.package().id)
else:
self.fail('Could not extract any links')