summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MegauploadCom.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-27 17:07:33 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-27 17:07:33 +0200
commita33d8062833d1bfec4777145cc484c1d6b9e141f (patch)
tree7d815f80cdcced2d36144b9b71760278d29ed007 /module/plugins/hoster/MegauploadCom.py
parentlocale fixes (diff)
downloadpyload-a33d8062833d1bfec4777145cc484c1d6b9e141f.tar.xz
some automatic fixes
Diffstat (limited to 'module/plugins/hoster/MegauploadCom.py')
-rw-r--r--module/plugins/hoster/MegauploadCom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/MegauploadCom.py b/module/plugins/hoster/MegauploadCom.py
index a14c2c76f..3e257d0b1 100644
--- a/module/plugins/hoster/MegauploadCom.py
+++ b/module/plugins/hoster/MegauploadCom.py
@@ -80,7 +80,7 @@ class MegauploadCom(Hoster):
captchacode = re.search('name="captchacode" value="(.*)"', self.html[0]).group(1)
megavar = re.search('name="megavar" value="(.*)">', self.html[0]).group(1)
self.html[1] = self.load(self.pyfile.url, post={"captcha": captcha, "captchacode": captchacode, "megavar": megavar})
- if re.search(r"Waiting time before each download begins", self.html[1]) != None:
+ if re.search(r"Waiting time before each download begins", self.html[1]) is not None:
break
def get_file_url(self):
@@ -94,7 +94,7 @@ class MegauploadCom(Hoster):
def file_exists(self):
self.download_html()
- if re.search(r"Unfortunately, the link you have clicked is not available.", self.html[0]) != None or \
+ if re.search(r"Unfortunately, the link you have clicked is not available.", self.html[0]) is not None or \
re.search(r"Download limit exceeded", self.html[0]):
return False
return True