diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2016-01-02 16:01:56 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2016-01-02 16:01:56 +0100 |
commit | 6c75c0363f496df86e9c744a9a946f86f82715fa (patch) | |
tree | 53e5b7f906e2b9fb1d853d2b0599be7a8c5c7a3d /module/plugins/crypter/Go4UpCom.py | |
parent | Timeout for http request set to 1 minute + report effective url address in he... (diff) | |
download | pyload-6c75c0363f496df86e9c744a9a946f86f82715fa.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/crypter/Go4UpCom.py')
-rwxr-xr-x | module/plugins/crypter/Go4UpCom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/crypter/Go4UpCom.py b/module/plugins/crypter/Go4UpCom.py index 143d189af..42dbc58bf 100755 --- a/module/plugins/crypter/Go4UpCom.py +++ b/module/plugins/crypter/Go4UpCom.py @@ -34,13 +34,13 @@ class Go4UpCom(SimpleCrypter): def get_links(self): links = [] - preference = self.config.get("preferred_hoster") + preference = self.config.get('preferred_hoster') hosterslink_re = re.search(r'(/download/gethosts/.+?)"', self.data) 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 not in (0, int(hoster["hostId"])): continue pagelink_re = re.search(self.LINK_PATTERN, hoster["link"]) if pagelink_re: |