diff options
author | mkaay <mkaay@mkaay.de> | 2010-01-01 17:13:43 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-01-01 17:13:43 +0100 |
commit | 4f904bd9610795c36d9e896bdf44c263ff43f5fd (patch) | |
tree | f232e78de164f9151371e56146439d34fbe28802 /module/plugins/decrypter | |
parent | removed prints (diff) | |
download | pyload-4f904bd9610795c36d9e896bdf44c263ff43f5fd.tar.xz |
fixed SerienjunkiesOrg, no more segfault in gui?
Diffstat (limited to 'module/plugins/decrypter')
-rw-r--r-- | module/plugins/decrypter/SerienjunkiesOrg.py | 4 |
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() |