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