summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r--module/plugins/crypter/SerienjunkiesOrg.py6
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: