summaryrefslogtreecommitdiffstats
path: root/module/plugins/decrypter
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-01-01 17:13:43 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2010-01-01 17:13:43 +0100
commit4f904bd9610795c36d9e896bdf44c263ff43f5fd (patch)
treef232e78de164f9151371e56146439d34fbe28802 /module/plugins/decrypter
parentremoved prints (diff)
downloadpyload-4f904bd9610795c36d9e896bdf44c263ff43f5fd.tar.xz
fixed SerienjunkiesOrg, no more segfault in gui?
Diffstat (limited to 'module/plugins/decrypter')
-rw-r--r--module/plugins/decrypter/SerienjunkiesOrg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/decrypter/SerienjunkiesOrg.py b/module/plugins/decrypter/SerienjunkiesOrg.py
index ce1721e92..2f77b81ae 100644
--- a/module/plugins/decrypter/SerienjunkiesOrg.py
+++ b/module/plugins/decrypter/SerienjunkiesOrg.py
@@ -52,7 +52,7 @@ class SerienjunkiesOrg(Plugin):
self.hosterMapReverse = dict((v,k) for k, v in self.hosterMap.iteritems())
episodePattern = re.compile("^http://download.serienjunkies.org/f-.*?.html$")
oldStyleLink = re.compile("^http://serienjunkies.org/safe/(.*)$")
- if re.match(episodePattern, self.parent.url) or re.match(oldStyleLink, self.parent.url):
+ if episodePattern.match(self.parent.url) or oldStyleLink.match(self.parent.url):
self.decryptNow = False
else:
self.decryptNow = True
@@ -121,7 +121,7 @@ class SerienjunkiesOrg(Plugin):
val = v.nextSibling
val = val.encode("utf-8")
val = decode_htmlentities(val)
- val = val.replace(" |", "")
+ val = val.replace("|", "").strip()
n = n.strip()
n = re.sub(r"^([:]?)(.*?)([:]?)$", r'\2', n)
val = val.strip()