summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/TurbobitNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/TurbobitNet.py')
-rw-r--r--module/plugins/hoster/TurbobitNet.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/TurbobitNet.py b/module/plugins/hoster/TurbobitNet.py
index 4649c3143..cb0166ef8 100644
--- a/module/plugins/hoster/TurbobitNet.py
+++ b/module/plugins/hoster/TurbobitNet.py
@@ -87,7 +87,7 @@ class TurbobitNet(SimpleHoster):
captcha_key)
else:
found = re.search(self.CAPTCHA_SRC_PATTERN, self.html)
- if not found:
+ if found is None:
self.parseError('captcha')
captcha_url = found.group(1)
inputs['captcha_response'] = self.decryptCaptcha(captcha_url)
@@ -169,7 +169,7 @@ class TurbobitNet(SimpleHoster):
def downloadFile(self):
found = re.search(self.LINK_PATTERN, self.html)
- if not found:
+ if found is None:
self.parseError("download link")
self.url = "http://turbobit.net" + found.group('url')
self.logDebug(self.url)