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/MegavideoCom.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'module/plugins/hoster/MegavideoCom.py') diff --git a/module/plugins/hoster/MegavideoCom.py b/module/plugins/hoster/MegavideoCom.py index 7ea045447..e4b41605b 100644 --- a/module/plugins/hoster/MegavideoCom.py +++ b/module/plugins/hoster/MegavideoCom.py @@ -27,7 +27,7 @@ class MegavideoCom(Hoster): def get_file_url(self): """ returns the absolute downloadable filepath """ - if self.html == None: + if self.html is None: self.download_html() # get id @@ -90,7 +90,7 @@ class MegavideoCom(Hoster): return out.lower() def get_file_name(self): - if self.html == None: + if self.html is None: self.download_html() name = re.search("flashvars.title = \"(.*?)\";", self.html).group(1) @@ -100,11 +100,11 @@ class MegavideoCom(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"Dieses Video ist nicht verfügbar.", self.html) != None or \ - re.search(r"This video is unavailable.", self.html) != None: + if re.search(r"Dieses Video ist nicht verfügbar.", self.html) is not None or \ + re.search(r"This video is unavailable.", self.html) is not None: return False else: return True -- cgit v1.2.3