diff options
Diffstat (limited to 'module/plugins')
| -rw-r--r-- | module/plugins/Crypter.py | 1 | ||||
| -rw-r--r-- | module/plugins/Plugin.py | 1 | ||||
| -rw-r--r-- | module/plugins/crypter/SerienjunkiesOrg.py | 6 | 
3 files changed, 8 insertions, 0 deletions
| diff --git a/module/plugins/Crypter.py b/module/plugins/Crypter.py index 123c26eec..0abd11e82 100644 --- a/module/plugins/Crypter.py +++ b/module/plugins/Crypter.py @@ -38,6 +38,7 @@ class Crypter(Plugin):          self.packages = []          self.multiDL = True +        self.limitDL = 0          self.setup()      #---------------------------------------------------------------------- diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index b1cedb341..d642df728 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -85,6 +85,7 @@ class Plugin(object):          self.wantReconnect = False          self.multiDL = True +        self.limitDL = 0          self.waitUntil = 0 # time() + wait in seconds          self.waiting = False diff --git a/module/plugins/crypter/SerienjunkiesOrg.py b/module/plugins/crypter/SerienjunkiesOrg.py index 709bc7630..07a73d0b0 100644 --- a/module/plugins/crypter/SerienjunkiesOrg.py +++ b/module/plugins/crypter/SerienjunkiesOrg.py @@ -1,6 +1,7 @@  # -*- coding: utf-8 -*-  import re +from time import sleep  from module.plugins.Crypter import Crypter  from module.BeautifulSoup import BeautifulSoup @@ -34,10 +35,12 @@ class SerienjunkiesOrg(Crypter):          self.hosterMapReverse = dict((v,k) for k, v in self.hosterMap.iteritems())          self.multiDL = False +        self.limitDL = 4      def getSJSrc(self, url):          src = self.req.load(str(url))          if not src.find("Enter Serienjunkies") == -1: +            sleep(1)              src = self.req.load(str(url))          return src @@ -115,6 +118,7 @@ class SerienjunkiesOrg(Crypter):              packageName = soup.find("h1", attrs={"class":"wrap"}).text              captchaTag = soup.find(attrs={"src":re.compile("^/secure/")})              if not captchaTag: +                sleep(1)                  self.retry()              captchaUrl = "http://download.serienjunkies.org"+captchaTag["src"] @@ -128,7 +132,9 @@ class SerienjunkiesOrg(Crypter):              rawLinks = soup.findAll(attrs={"action": re.compile("^http://download.serienjunkies.org/")})              if not len(rawLinks) > 0: +                sleep(1)                  self.retry() +                return              links = []              for link in rawLinks: | 
