summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-10-28 22:41:41 +0100
committerGravatar spoob <spoob@gmx.de> 2009-10-28 22:41:41 +0100
commitec9cf026910e6a0010ab07b2b077e2eb1cd918c2 (patch)
tree7289d4496993ac23b5af7e82025f7f90cefeb9b4
parentfixed #31 (diff)
downloadpyload-ec9cf026910e6a0010ab07b2b077e2eb1cd918c2.tar.xz
hopefully fixed #29
-rw-r--r--config2
-rw-r--r--module/plugins/RapidshareCom.py16
-rw-r--r--pluginconfig5
3 files changed, 9 insertions, 14 deletions
diff --git a/config b/config
index 43579fe8e..239eb0d0c 100644
--- a/config
+++ b/config
@@ -21,7 +21,7 @@ use_reconnect = False
link_file = links.txt
failed_file = failed_links.txt
reconnect_method = reconnect_method
-debug_mode = False
+debug_mode = True
[updates]
search_updates = True
diff --git a/module/plugins/RapidshareCom.py b/module/plugins/RapidshareCom.py
index 56a38fb9d..7409f33d9 100644
--- a/module/plugins/RapidshareCom.py
+++ b/module/plugins/RapidshareCom.py
@@ -39,7 +39,7 @@ class RapidshareCom(Plugin):
self.want_reconnect = False
tries = 0
-
+
while not self.start_dl or not pyfile.status.url:
self.req.clear_cookies()
@@ -51,6 +51,8 @@ class RapidshareCom(Plugin):
if not pyfile.status.exists:
raise Exception, "The file was not found on the server."
+ self.download_serverhtml()
+
pyfile.status.filename = self.get_file_name()
if self.config['premium']:
@@ -78,8 +80,6 @@ class RapidshareCom(Plugin):
self.html[0] = self.req.load(url)
self.html_old = time()
- self.download_serverhtml()
-
def download_serverhtml(self):
"""downloads html with the important informations
"""
@@ -106,11 +106,11 @@ class RapidshareCom(Plugin):
def file_exists(self):
""" returns True or False
"""
- if re.search(r"The File could not be found", self.html[0]) != None or \
- re.search(r"(<p>This limit is reached.</p>)", self.html[0]) or \
- re.search(r"(is momentarily not available)", self.html[0]) or \
- re.search(r"(The uploader has removed this file from the server)", self.html[0]) or \
- re.search(r"(This file is suspected to contain illegal content)", self.html[0]):
+ if re.search(r"The file could not be found.", self.html[0]) != None or \
+ re.search(r"This limit is reached", self.html[0]) or \
+ re.search(r"is momentarily not available", self.html[0]) or \
+ re.search(r"The uploader has removed this file from the server", self.html[0]) or \
+ re.search(r"This file is suspected to contain illegal content", self.html[0]):
return False
else:
return True
diff --git a/pluginconfig b/pluginconfig
index 856a1fddc..65f9ed36b 100644
--- a/pluginconfig
+++ b/pluginconfig
@@ -5,11 +5,6 @@ premium = False
username = namehere
password = passhere
-[NetloadIn]
-premium = False
-username = namehere
-password = passhere
-
[YoutubeCom]
high_quality = True