From b8387e72fd3e679db00e03ebd3e3863bfbe8584a Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 14 Dec 2015 16:16:10 +0100 Subject: [crypters] Remove create_getInfo + minor code cosmetics (w/ strict comparison for numbers) --- module/plugins/crypter/Go4UpCom.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'module/plugins/crypter/Go4UpCom.py') 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) -- cgit v1.2.3