diff options
author | spoob <spoob@gmx.de> | 2009-10-28 22:41:41 +0100 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-10-28 22:41:41 +0100 |
commit | ec9cf026910e6a0010ab07b2b077e2eb1cd918c2 (patch) | |
tree | 7289d4496993ac23b5af7e82025f7f90cefeb9b4 /module/plugins | |
parent | fixed #31 (diff) | |
download | pyload-ec9cf026910e6a0010ab07b2b077e2eb1cd918c2.tar.xz |
hopefully fixed #29
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/RapidshareCom.py | 16 |
1 files changed, 8 insertions, 8 deletions
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 |