summaryrefslogtreecommitdiffstats
path: root/Plugins/UploadedTo.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-10 20:18:37 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-10 20:18:37 +0200
commit922d6aca5f0a1a3ce9e6fb855a3e55c367069943 (patch)
treeb7aaf8748b5332128e5c6b436da0d7e374ca5085 /Plugins/UploadedTo.py
parentcaptcha fix (diff)
downloadpyload-922d6aca5f0a1a3ce9e6fb855a3e55c367069943.tar.xz
some plugin fixes
Diffstat (limited to 'Plugins/UploadedTo.py')
-rw-r--r--Plugins/UploadedTo.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Plugins/UploadedTo.py b/Plugins/UploadedTo.py
index e163a3230..bbfeb7f19 100644
--- a/Plugins/UploadedTo.py
+++ b/Plugins/UploadedTo.py
@@ -48,6 +48,8 @@ class UploadedTo(Plugin):
thread.wait(self.parent)
+ pyfile.status.filename = self.get_file_name()
+
tries += 1
if tries > 5:
raise Exception, "Error while preparing DL, HTML dump: %s" % self.html
@@ -75,13 +77,14 @@ class UploadedTo(Plugin):
return None
def get_file_name(self):
- if not self.want_reconnect:
+ try:
file_name = re.search(r"<td><b>\s+(.+)\s", self.html).group(1)
file_suffix = re.search(r"</td><td>(\..+)</td></tr>", self.html)
if not file_suffix:
return file_name
return file_name + file_suffix.group(1)
- else:
+ except:
+ self.parent.status.url = None
return self.parent.url
def file_exists(self):