diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-27 17:07:33 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-27 17:07:33 +0200 |
commit | a33d8062833d1bfec4777145cc484c1d6b9e141f (patch) | |
tree | 7d815f80cdcced2d36144b9b71760278d29ed007 /module/plugins/hoster/PornhostCom.py | |
parent | locale fixes (diff) | |
download | pyload-a33d8062833d1bfec4777145cc484c1d6b9e141f.tar.xz |
some automatic fixes
Diffstat (limited to 'module/plugins/hoster/PornhostCom.py')
-rw-r--r-- | module/plugins/hoster/PornhostCom.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hoster/PornhostCom.py b/module/plugins/hoster/PornhostCom.py index 5dd681b5b..7a969f7f7 100644 --- a/module/plugins/hoster/PornhostCom.py +++ b/module/plugins/hoster/PornhostCom.py @@ -30,7 +30,7 @@ class PornhostCom(Hoster): def get_file_url(self):
""" returns the absolute downloadable filepath
"""
- if self.html == None:
+ if self.html is None:
self.download_html()
file_url = re.search(r'download this file</label>.*?<a href="(.*?)"', self.html)
@@ -46,7 +46,7 @@ class PornhostCom(Hoster): return file_url
def get_file_name(self):
- if self.html == None:
+ if self.html is None:
self.download_html()
name = re.search(r'<title>pornhost\.com - free file hosting with a twist - gallery(.*?)</title>', self.html)
@@ -64,11 +64,11 @@ class PornhostCom(Hoster): def file_exists(self):
""" returns True or False
"""
- if self.html == None:
+ if self.html is None:
self.download_html()
- if re.search(r'gallery not found', self.html) != None \
- or re.search(r'You will be redirected to', self.html) != None:
+ if re.search(r'gallery not found', self.html) is not None \
+ or re.search(r'You will be redirected to', self.html) is not None:
return False
else:
return True
|