diff options
author | spoob <spoob@gmx.de> | 2009-05-23 20:12:49 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-05-23 20:12:49 +0200 |
commit | cefc1c4be20d7e7ccb23a786c90b45c20602cf11 (patch) | |
tree | bcf4e10b62c3a62c96f8afdb2a08e8b35f65882b /Plugins | |
parent | youtube plugin added, nicer test output (diff) | |
download | pyload-cefc1c4be20d7e7ccb23a786c90b45c20602cf11.tar.xz |
better file name parsing for uploaded.to plugin
Diffstat (limited to 'Plugins')
-rw-r--r-- | Plugins/UploadedTo.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Plugins/UploadedTo.py b/Plugins/UploadedTo.py index b0b2d1c66..4b2d3c6f0 100644 --- a/Plugins/UploadedTo.py +++ b/Plugins/UploadedTo.py @@ -62,8 +62,10 @@ class UploadedTo(Plugin): if self.html == None: self.download_html() if not self.want_reconnect: - file_name_pattern = r"<title>\s*(.*?)\s+\.\.\." - return re.search(file_name_pattern, self.html).group(1) + 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 else: return self.parent.url |