diff options
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:  | 
