diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-04-11 12:26:05 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2014-04-11 12:26:05 +0200 |
commit | 4d978dedd16418a4e7d8c81bd819a6a5fa432057 (patch) | |
tree | a347dae567c7e254b41df58e029f7bccfd5603a8 /module/plugins/crypter/DDLMusicOrg.py | |
parent | Fix __pattern__ www (diff) | |
download | pyload-4d978dedd16418a4e7d8c81bd819a6a5fa432057.tar.xz |
Use pyfile instead self.pyfile
Merges vuolter/pyload@b7f6e2e
Diffstat (limited to 'module/plugins/crypter/DDLMusicOrg.py')
-rw-r--r-- | module/plugins/crypter/DDLMusicOrg.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/crypter/DDLMusicOrg.py b/module/plugins/crypter/DDLMusicOrg.py index 16ab63594..1e8503a5a 100644 --- a/module/plugins/crypter/DDLMusicOrg.py +++ b/module/plugins/crypter/DDLMusicOrg.py @@ -19,7 +19,7 @@ class DDLMusicOrg(Crypter): self.multiDL = False def decrypt(self, pyfile): - html = self.req.load(self.pyfile.url, cookies=True) + html = self.req.load(pyfile.url, cookies=True) if re.search(r"Wer dies nicht rechnen kann", html) is not None: self.offline() @@ -34,11 +34,11 @@ class DDLMusicOrg(Crypter): else: solve = int(math.group(1)) - int(math.group(3)) sleep(3) - htmlwithlink = self.req.load(self.pyfile.url, cookies=True, + htmlwithlink = self.req.load(pyfile.url, cookies=True, post={"calc%s" % linknr: solve, "send%s" % linknr: "Send", "id": id, "linknr": linknr}) m = re.search(r"<form id=\"ff\" action=\"(.*?)\" method=\"post\">", htmlwithlink) if m: - self.packages.append((self.pyfile.package().name, [m.group(1)], self.pyfile.package().folder)) + self.packages.append((pyfile.package().name, [m.group(1)], pyfile.package().folder)) else: self.retry() |