diff options
author | spoob <spoob@gmx.de> | 2009-06-18 15:16:47 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-06-18 15:16:47 +0200 |
commit | a66fbfd2b39bcd98967c439060951e63e0532c0a (patch) | |
tree | dd4b693423b4e448055a6146f81d98882477519f | |
parent | worked on gigasize.com Plugin (diff) | |
download | pyload-a66fbfd2b39bcd98967c439060951e63e0532c0a.tar.xz |
fixed some bugs
-rw-r--r-- | Plugins/GigasizeCom.py | 2 | ||||
-rw-r--r-- | Plugins/ZshareNet.py | 1 | ||||
-rw-r--r-- | module/download_thread.py | 2 | ||||
-rw-r--r-- | module/file_list.py | 8 |
4 files changed, 4 insertions, 9 deletions
diff --git a/Plugins/GigasizeCom.py b/Plugins/GigasizeCom.py index bf8b3d97e..edc92b2ba 100644 --- a/Plugins/GigasizeCom.py +++ b/Plugins/GigasizeCom.py @@ -53,11 +53,9 @@ class GigasizeCom(Plugin): if not self.want_reconnect: file_url_pattern = '<form action="(/getcgi.php\?t=.*)" method="post" id="formDownload">' search = re.search(file_url_pattern, self.html[1]) - print search if search: return "http://gigazise.com" + search.group(1) return "" - else: return False diff --git a/Plugins/ZshareNet.py b/Plugins/ZshareNet.py index e81988454..33667605f 100644 --- a/Plugins/ZshareNet.py +++ b/Plugins/ZshareNet.py @@ -34,7 +34,6 @@ class ZshareNet(Plugin): url = url.replace("/audio/", "/download/") elif "/image/" in url: url = url.replace("/image/", "/download/") - print url self.html[1] = self.req.load(url, None, {"download": "1"}) def get_file_url(self): diff --git a/module/download_thread.py b/module/download_thread.py index f8cad7846..f7aa2ecb1 100644 --- a/module/download_thread.py +++ b/module/download_thread.py @@ -91,7 +91,7 @@ class Download_Thread(threading.Thread): return False sleep(1) if status.filename == "": - pyfile.get_filename() + status.filename = pyfile.get_filename() status.want_reconnect = False diff --git a/module/file_list.py b/module/file_list.py index ea2dfd817..00a3e0603 100644 --- a/module/file_list.py +++ b/module/file_list.py @@ -50,12 +50,10 @@ class File_List(object): def remove(self, pyfile): - pass + if pyfile in self.files: + self.files.remove(pyfile) - #if pyfile in self.files: - # self.files.remove(pyfile) - - #del self.data[pyfile.id] + del self.data[pyfile.id] def get_id(self): """return a free id""" |