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/RedtubeCom.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/plugins/hoster/RedtubeCom.py') diff --git a/module/plugins/hoster/RedtubeCom.py b/module/plugins/hoster/RedtubeCom.py index 6a9baffbe..748ab04f0 100644 --- a/module/plugins/hoster/RedtubeCom.py +++ b/module/plugins/hoster/RedtubeCom.py @@ -29,7 +29,7 @@ class RedtubeCom(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 = unescape(re.search(r'hashlink=(http.*?)"', self.html).group(1)) @@ -37,7 +37,7 @@ class RedtubeCom(Hoster): return file_url def get_file_name(self): - if self.html == None: + if self.html is None: self.download_html() name = re.search('(.*?)- RedTube - Free Porn Videos', self.html).group(1).strip() + ".flv" @@ -46,10 +46,10 @@ class RedtubeCom(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 has been removed.', self.html) != None: + if re.search(r'This video has been removed.', self.html) is not None: return False else: return True -- cgit v1.2.3