diff options
author | spoob <spoob@gmx.de> | 2009-06-14 23:38:15 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-06-14 23:38:15 +0200 |
commit | f01b73235fb54fd5a26aaddca8bf35be740eef0f (patch) | |
tree | 554b9a819b0fe080d2c426dca4eaf681c594df59 /Plugins/UploadedTo.py | |
parent | Merge with 80e6af340ebfdd0c054e6d2016802698a4730b1d (diff) | |
download | pyload-f01b73235fb54fd5a26aaddca8bf35be740eef0f.tar.xz |
many little changes
Diffstat (limited to 'Plugins/UploadedTo.py')
-rw-r--r-- | Plugins/UploadedTo.py | 9 |
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 |