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/PornhubCom.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/plugins/hoster/PornhubCom.py') diff --git a/module/plugins/hoster/PornhubCom.py b/module/plugins/hoster/PornhubCom.py index ea7e1423c..abc489e30 100644 --- a/module/plugins/hoster/PornhubCom.py +++ b/module/plugins/hoster/PornhubCom.py @@ -28,7 +28,7 @@ class PornhubCom(Hoster): def get_file_url(self): """ returns the absolute downloadable filepath """ - if self.html == None: + if self.html is None: self.download_html() url = "http://www.pornhub.com//gateway.php" @@ -46,7 +46,7 @@ class PornhubCom(Hoster): return file_url def get_file_name(self): - if self.html == None: + if self.html is None: self.download_html() name = re.findall('

(.*?)

', self.html)[1] + ".flv" @@ -56,10 +56,10 @@ class PornhubCom(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'This video is no longer in our database or is in conversion', self.html) != None: + if re.search(r'This video is no longer in our database or is in conversion', self.html) is not None: return False else: return True -- cgit v1.2.3