summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/Go4UpCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-14 16:16:10 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-27 21:20:55 +0100
commitb8387e72fd3e679db00e03ebd3e3863bfbe8584a (patch)
tree71ae1fa66d8e0e24a4dd6d4edda118b8a673e8ef /module/plugins/crypter/Go4UpCom.py
parent[accounts] Strict comparison for numbers (diff)
downloadpyload-b8387e72fd3e679db00e03ebd3e3863bfbe8584a.tar.xz
[crypters] Remove create_getInfo + minor code cosmetics (w/ strict comparison for numbers)
Diffstat (limited to 'module/plugins/crypter/Go4UpCom.py')
-rwxr-xr-xmodule/plugins/crypter/Go4UpCom.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/module/plugins/crypter/Go4UpCom.py b/module/plugins/crypter/Go4UpCom.py
index 8e928789c..5d61d3a14 100755
--- a/module/plugins/crypter/Go4UpCom.py
+++ b/module/plugins/crypter/Go4UpCom.py
@@ -3,7 +3,7 @@
import re
import urlparse
-from module.plugins.internal.SimpleCrypter import SimpleCrypter, create_getInfo
+from module.plugins.internal.SimpleCrypter import SimpleCrypter
from module.plugins.internal.misc import json
@@ -41,7 +41,7 @@ class Go4UpCom(SimpleCrypter):
if hosterslink_re:
hosters = self.load(urlparse.urljoin("http://go4up.com/", hosterslink_re.group(1)))
for hoster in json.loads(hosters):
- if preference != 0 and preference != int(hoster["hostId"]):
+ if preference is not 0 and preference != int(hoster["hostId"]):
continue
pagelink_re = re.search(self.LINK_PATTERN, hoster["link"])
if pagelink_re:
@@ -51,6 +51,3 @@ class Go4UpCom(SimpleCrypter):
links.append(link_re.group(1))
return links
-
-
-getInfo = create_getInfo(Go4UpCom)