summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-12-15 23:37:20 +0100
committerGravatar spoob <spoob@gmx.de> 2009-12-15 23:37:20 +0100
commitde5a37e0ffc97bc5893077f935429ba32a9b8f6c (patch)
treec88ebe6af9a5221e7d249b8f5a0ae7f72ed262a2 /module/plugins
parentRS fixedhg (diff)
downloadpyload-de5a37e0ffc97bc5893077f935429ba32a9b8f6c.tar.xz
Incomplete: Rapidshare Folder
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/RapidshareCom.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/module/plugins/RapidshareCom.py b/module/plugins/RapidshareCom.py
index 2fd65c706..714bbf825 100644
--- a/module/plugins/RapidshareCom.py
+++ b/module/plugins/RapidshareCom.py
@@ -141,13 +141,12 @@ class RapidshareCom(Plugin):
def get_file_name(self):
if self.api_data and self.api_data["filename"]:
return self.api_data["filename"]
- elif self.html:
- file_name_pattern = "<p class=\"downloadlink\">.+/(.+) <font"
- file_name_search = re.search(file_name_pattern, self.html):
+ elif self.html[0]:
+ file_name_pattern = r"<p class=\"downloadlink\">.+/(.+) <font"
+ file_name_search = re.search(file_name_pattern, self.html[0])
if file_name_search:
return file_name_search.group(1)
- else:
- return self.url.split("/")[-1]
+ return self.url.split("/")[-1]
def proceed(self, url, location):
if self.config['premium']: