diff options
-rw-r--r-- | config | 2 | ||||
-rw-r--r-- | module/plugins/RapidshareCom.py | 16 | ||||
-rw-r--r-- | pluginconfig | 5 |
3 files changed, 9 insertions, 14 deletions
@@ -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 |