summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-06-21 15:27:00 +0200
committerGravatar spoob <spoob@gmx.de> 2009-06-21 15:27:00 +0200
commit868fc0690b5ae59c83196c9918932d1fb14533dd (patch)
tree6d8978f3aa520843f0c9df3be45e4d99f218822a
parentcli able to add links (diff)
downloadpyload-868fc0690b5ae59c83196c9918932d1fb14533dd.tar.xz
fixed no url return bug
-rw-r--r--Plugins/RapidshareCom.py2
-rw-r--r--module/download_thread.py5
-rw-r--r--pyLoadCore.py1
3 files changed, 3 insertions, 5 deletions
diff --git a/Plugins/RapidshareCom.py b/Plugins/RapidshareCom.py
index 894deb4f7..aa6a55f03 100644
--- a/Plugins/RapidshareCom.py
+++ b/Plugins/RapidshareCom.py
@@ -61,8 +61,6 @@ class RapidshareCom(Plugin):
return False
file_server_url = re.search(r"<form action=\"(.*?)\"", self.html[0]).group(1)
- #free user
- #free_user_encode = urllib.urlencode({"dl.start" : "Free"})
self.html[1] = self.req.load(file_server_url, None, {"dl.start": "Free"})
self.html_old = time()
self.get_wait_time()
diff --git a/module/download_thread.py b/module/download_thread.py
index f7aa2ecb1..378ae8f79 100644
--- a/module/download_thread.py
+++ b/module/download_thread.py
@@ -90,8 +90,9 @@ class Download_Thread(threading.Thread):
status.want_reconnect = False
return False
sleep(1)
- if status.filename == "":
- status.filename = pyfile.get_filename()
+
+ if status.url == "":
+ status.url = pyfile.plugin.get_file_url()
status.want_reconnect = False
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 25c9ae191..3a46aea21 100644
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -96,7 +96,6 @@ class Core(object):
self.logger.debug(plugin_file + _(" added"))
self.logger.info(_("created index of plugins"))
-
def read_links(self):
"""read links from txt"""
txt = open(self.config['link_file'], 'r')