summaryrefslogtreecommitdiffstats
path: root/module/plugins/decrypter
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-01-27 15:51:36 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2010-01-27 15:51:36 +0100
commitb4c21e149308dad7fca1ebd309b405864d38ad52 (patch)
tree4ce60c50a3f23d0d10e4831ce7a430b77b9c143b /module/plugins/decrypter
parentmoved script support to a new plugin (diff)
downloadpyload-b4c21e149308dad7fca1ebd309b405864d38ad52.tar.xz
fixed serienjunkies.org (new url pattern)
Diffstat (limited to 'module/plugins/decrypter')
-rw-r--r--module/plugins/decrypter/SerienjunkiesOrg.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/module/plugins/decrypter/SerienjunkiesOrg.py b/module/plugins/decrypter/SerienjunkiesOrg.py
index 7d45fd705..af7dc8169 100644
--- a/module/plugins/decrypter/SerienjunkiesOrg.py
+++ b/module/plugins/decrypter/SerienjunkiesOrg.py
@@ -59,6 +59,16 @@ class SerienjunkiesOrg(Plugin):
return True
+ def get_file_name(self):
+ showPattern = re.compile("^http://serienjunkies.org/serie/(.*)/$")
+ seasonPattern = re.compile("^http://serienjunkies.org/.*?/(.*)/$")
+ m = showPattern.match(self.parent.url)
+ if not m:
+ m = seasonPattern.match(self.parent.url)
+ if m:
+ return m.group(1)
+ return "n/a"
+
def getSJSrc(self, url):
src = self.req.load(str(url))
if not src.find("Enter Serienjunkies") == -1:
@@ -78,7 +88,7 @@ class SerienjunkiesOrg(Plugin):
self.logger.debug("Preferred hoster: %s" % ", ".join(preferredHoster))
groups = {}
gid = -1
- seasonName = soup.find("a", attrs={"rel":"bookmark"}).string
+ seasonName = unescape(soup.find("a", attrs={"rel":"bookmark"}).string)
for p in ps:
if re.search("<strong>Dauer|<strong>Sprache|<strong>Format", str(p)):
var = p.findAll("strong")
@@ -191,13 +201,16 @@ class SerienjunkiesOrg(Plugin):
episodePattern = re.compile("^http://download.serienjunkies.org/f-.*?.html$")
oldStyleLink = re.compile("^http://serienjunkies.org/safe/(.*)$")
framePattern = re.compile("^http://download.serienjunkies.org/frame/go-.*?/$")
- seasonPattern = re.compile("^http://serienjunkies.org/\?p=.*?$")
+ showPattern = re.compile("^http://serienjunkies.org/serie/.*/$")
+ seasonPattern = re.compile("^http://serienjunkies.org/.*?/.*/$")
if framePattern.match(url):
links = [self.handleFrame(url)]
elif episodePattern.match(url):
links = self.handleEpisode(url)
elif oldStyleLink.match(url):
links = self.handleOldStyleLink(url)
+ elif showPattern.match(url):
+ pass
elif seasonPattern.match(url):
links = self.handleSeason(url)
self.links = links