summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-06-16 23:12:31 +0200
committerGravatar spoob <spoob@gmx.de> 2009-06-16 23:12:31 +0200
commita665a9a1043f1cca8c3fd45365bb2443c80ae20c (patch)
treeac8e09719dd2a14e57a253a7dd73efeb7d31011a
parentfixed request bug (diff)
downloadpyload-a665a9a1043f1cca8c3fd45365bb2443c80ae20c.tar.xz
fixed rapidshare server url bug
-rw-r--r--Plugins/RapidshareCom.py4
-rw-r--r--module/thread_list.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/Plugins/RapidshareCom.py b/Plugins/RapidshareCom.py
index 0adae9c15..84f03b651 100644
--- a/Plugins/RapidshareCom.py
+++ b/Plugins/RapidshareCom.py
@@ -14,7 +14,7 @@ class RapidshareCom(Plugin):
props = {}
props['name'] = "RapidshareCom"
props['type'] = "hoster"
- props['pattern'] = r"http://(?:www.)?rapidshare.com/files/"
+ props['pattern'] = r"http://(?:www.)?(rs\d*.)?rapidshare.com/files/"
props['version'] = "0.1"
props['description'] = """Rapidshare.com Download Plugin"""
props['author_name'] = ("spoob")
@@ -124,7 +124,7 @@ class RapidshareCom(Plugin):
def get_file_name(self):
if self.html[0] == None:
self.download_html()
-
+
file_name_pattern = r"<p class=\"downloadlink\">.+/(.+)<font"
return re.findall(file_name_pattern, self.html[0])[0]
diff --git a/module/thread_list.py b/module/thread_list.py
index 677fe7ecc..a7e92b77d 100644
--- a/module/thread_list.py
+++ b/module/thread_list.py
@@ -117,8 +117,8 @@ class Thread_List(object):
data = data.replace(pyfile.url + '\n', "")
- #with open(self.parent.config['link_file'], 'w') as f:
- #f.write(data)
+ with open(self.parent.config['link_file'], 'w') as f:
+ f.write(data)
if pyfile.status.type == "reconnected":#put it back in queque
self.py_load_files.insert(0, pyfile)