summaryrefslogtreecommitdiffstats
path: root/Plugins/UploadedTo.py
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-06-14 23:38:15 +0200
committerGravatar spoob <spoob@gmx.de> 2009-06-14 23:38:15 +0200
commitf01b73235fb54fd5a26aaddca8bf35be740eef0f (patch)
tree554b9a819b0fe080d2c426dca4eaf681c594df59 /Plugins/UploadedTo.py
parentMerge with 80e6af340ebfdd0c054e6d2016802698a4730b1d (diff)
downloadpyload-f01b73235fb54fd5a26aaddca8bf35be740eef0f.tar.xz
many little changes
Diffstat (limited to 'Plugins/UploadedTo.py')
-rw-r--r--Plugins/UploadedTo.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Plugins/UploadedTo.py b/Plugins/UploadedTo.py
index 8df8db110..f1e7d8ae3 100644
--- a/Plugins/UploadedTo.py
+++ b/Plugins/UploadedTo.py
@@ -51,10 +51,11 @@ class UploadedTo(Plugin):
if self.html == None:
self.download_html()
if not self.want_reconnect:
- file_name = re.search(r"<td><b>\s+(.+)\s", self.html).group(1) + re.search(r"</td><td>(\..+)</td></tr>", self.html).group(1)
-
- #file_name_pattern = r"<title>\s*(.*?)\s+\.\.\."
- return file_name
+ 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:
return self.parent.url