From a33d8062833d1bfec4777145cc484c1d6b9e141f Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 27 Aug 2010 17:07:33 +0200 Subject: some automatic fixes --- module/plugins/hoster/PornhostCom.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'module/plugins/hoster/PornhostCom.py') 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.*?pornhost\.com - free file hosting with a twist - gallery(.*?)', 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 -- cgit v1.2.3