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/ShragleCom.py | |
parent | locale fixes (diff) | |
download | pyload-a33d8062833d1bfec4777145cc484c1d6b9e141f.tar.xz |
some automatic fixes
Diffstat (limited to 'module/plugins/hoster/ShragleCom.py')
-rw-r--r-- | module/plugins/hoster/ShragleCom.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hoster/ShragleCom.py b/module/plugins/hoster/ShragleCom.py index e634607b0..65d2787f0 100644 --- a/module/plugins/hoster/ShragleCom.py +++ b/module/plugins/hoster/ShragleCom.py @@ -24,7 +24,7 @@ class ShragleCom(Hoster): def set_parent_status(self): """ sets all available Statusinfos about a File in self.parent.status """ - if self.html == None: + if self.html is None: self.download_html() self.parent.status.filename = self.get_file_name() self.parent.status.url = self.get_file_url() @@ -38,7 +38,7 @@ class ShragleCom(Hoster): def get_file_url(self): """ returns the absolute downloadable filepath """ - if self.html == None: + if self.html is None: self.download_html() self.fileID = re.search(r"name=\"fileID\" value=\"([^\"]+)", self.html).group(1) @@ -49,7 +49,7 @@ class ShragleCom(Hoster): return "http://srv4.shragle.com/download.php" def get_file_name(self): - if self.html == None: + if self.html is None: self.download_html() file_name_pattern = r"<\/div><h2>(.+)<\/h2" @@ -58,10 +58,10 @@ class ShragleCom(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"html", self.html) == None: + if re.search(r"html", self.html) is None: return False else: return True |