diff options
author | spoob <spoob@gmx.de> | 2010-04-06 16:01:45 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2010-04-06 16:01:45 +0200 |
commit | 1a80a6dea59ef65565597ae2fde79761f44d3af3 (patch) | |
tree | 7004152ae6b975bb66a4845cc35acaada34f179b /module/plugins/hoster/HotfileCom.py | |
parent | Hotfile Premium (diff) | |
download | pyload-1a80a6dea59ef65565597ae2fde79761f44d3af3.tar.xz |
Universal File Not Found
Diffstat (limited to 'module/plugins/hoster/HotfileCom.py')
-rw-r--r-- | module/plugins/hoster/HotfileCom.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/HotfileCom.py b/module/plugins/hoster/HotfileCom.py index 5fa05e7f6..38e7caca8 100644 --- a/module/plugins/hoster/HotfileCom.py +++ b/module/plugins/hoster/HotfileCom.py @@ -39,7 +39,6 @@ class HotfileCom(Plugin): pyfile.status.exists = self.file_exists() if not pyfile.status.exists: - raise Exception, "The file was not found on the server." return False pyfile.status.filename = self.get_file_name() @@ -60,7 +59,8 @@ class HotfileCom(Plugin): def download_html(self): if self.config['premium']: self.req.add_auth(self.config['username'], self.config['password']) - self.url = self.parent.url + self.url = self.parent.url + "?lang=en" + print self.url self.html[0] = self.req.load(self.url, cookies=True) def get_file_url(self): @@ -79,7 +79,7 @@ class HotfileCom(Plugin): return file_name def file_exists(self): - if re.search(r"Such file does not exist or it has been removed for infringement of copyrights.", self.html[0]) != None: + if re.search(r"404 - Not Found", self.html[0]) != None or self.html[0] == "": return False return True |