diff options
author | mkaay <mkaay@mkaay.de> | 2010-11-05 18:29:42 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-11-05 18:29:42 +0100 |
commit | 7fababff0fb3e4251cf7ac60f7a945a9e8f13bde (patch) | |
tree | b688b51493e5ac4418305b034676ab1c20e6c2f7 /module/plugins/crypter | |
parent | sj fix (diff) | |
download | pyload-7fababff0fb3e4251cf7ac60f7a945a9e8f13bde.tar.xz |
scheduler optimization, SJOrg fix, better crypter limit
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r-- | module/plugins/crypter/SerienjunkiesOrg.py | 6 |
1 files changed, 6 insertions, 0 deletions
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: |