summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-08-18 01:55:27 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-08-18 01:55:27 +0200
commit1a4b272d8d4ad5c87e1c2fbc319cd465e1c9d47f (patch)
tree7226e80a76612c35535b0a5c13d0e96dd6385364 /module
parentsj still not working (diff)
downloadpyload-1a4b272d8d4ad5c87e1c2fbc319cd465e1c9d47f.tar.xz
fixed SerienjunkiesOrg error on bad formated season pages
Diffstat (limited to 'module')
-rw-r--r--module/plugins/crypter/SerienjunkiesOrg.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/module/plugins/crypter/SerienjunkiesOrg.py b/module/plugins/crypter/SerienjunkiesOrg.py
index b746da6bc..6a7d976ab 100644
--- a/module/plugins/crypter/SerienjunkiesOrg.py
+++ b/module/plugins/crypter/SerienjunkiesOrg.py
@@ -51,12 +51,17 @@ class SerienjunkiesOrg(Crypter):
opts = {"Dauer": "", "Uploader": "", "Sprache": "", "Format": "", u"Größe": ""}
for v in var:
n = unescape(v.string)
+ n = n.strip()
+ n = re.sub(r"^([:]?)(.*?)([:]?)$", r'\2', n)
+ if not opts.has_key(n.strip()):
+ continue
val = v.nextSibling
+ if not val:
+ continue
+ print type(val), val
val = val.encode("utf-8")
val = unescape(val)
val = val.replace("|", "").strip()
- n = n.strip()
- n = re.sub(r"^([:]?)(.*?)([:]?)$", r'\2', n)
val = val.strip()
val = re.sub(r"^([:]?)(.*?)([:]?)$", r'\2', val)
opts[n.strip()] = val.strip()