summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-26 20:18:11 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-26 20:18:11 +0100
commit504b313112be6a82d6eee418ae059646ecfc4b30 (patch)
tree88a8ee96d788bd4b3fd7c97775e85787c3709e8a /module/plugins
parentclean shutdown (diff)
downloadpyload-504b313112be6a82d6eee418ae059646ecfc4b30.tar.xz
fixed ddl-music, cleaned up, new status (starting), some more fixes
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/DDLMusicOrg.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/DDLMusicOrg.py b/module/plugins/DDLMusicOrg.py
index e34e6fbde..c927d261c 100644
--- a/module/plugins/DDLMusicOrg.py
+++ b/module/plugins/DDLMusicOrg.py
@@ -21,6 +21,7 @@ class DDLMusicOrg(Plugin):
self.props = props
self.parent = parent
self.html = None
+ self.multi_dl = False
def download_html(self):
url = self.parent.url
@@ -29,7 +30,8 @@ class DDLMusicOrg(Plugin):
def file_exists(self):
""" returns True or False
"""
- self.download_html()
+ if not self.html:
+ self.download_html()
if re.search(r"Wer dies nicht rechnen kann", self.html) != None:
return True
return False
@@ -48,7 +50,7 @@ class DDLMusicOrg(Plugin):
else:
solve = int(math.group(1)) - int(math.group(3))
sleep(3)
- htmlwithlink = self.req.load("http://ddl-music.org%s" % posturl, cookies=True, post={"calc0":solve, "send0":"Send", "id":id, "linknr":linknr})
+ htmlwithlink = self.req.load("http://ddl-music.org%s" % posturl, 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.links = [m.group(1)]