summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/HotfileCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/HotfileCom.py')
-rw-r--r--module/plugins/hoster/HotfileCom.py6
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