diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-14 20:59:01 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-14 20:59:01 +0200 |
commit | 853d29a0f12cdcb6c406b829a57439c7ea9b570d (patch) | |
tree | 047d94a11037617521c7a50130a6ead538c5daf7 /module/plugins/crypter | |
parent | fixed config on webif + show description (diff) | |
download | pyload-853d29a0f12cdcb6c406b829a57439c7ea9b570d.tar.xz |
has_key refractored, package name generator by Geek
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r-- | module/plugins/crypter/SerienjunkiesOrg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/crypter/SerienjunkiesOrg.py b/module/plugins/crypter/SerienjunkiesOrg.py index 21afc88e8..5b6295fe7 100644 --- a/module/plugins/crypter/SerienjunkiesOrg.py +++ b/module/plugins/crypter/SerienjunkiesOrg.py @@ -72,7 +72,7 @@ class SerienjunkiesOrg(Crypter): n = unescape(v.string) n = n.strip() n = re.sub(r"^([:]?)(.*?)([:]?)$", r'\2', n) - if not opts.has_key(n.strip()): + if n.strip() not in opts: continue val = v.nextSibling if not val: @@ -99,7 +99,7 @@ class SerienjunkiesOrg(Crypter): linkgroups = {} for link in linklist: key = re.sub("^http://download\.serienjunkies\.org/f-.*?/(.{2})_", "", link) - if not linkgroups.has_key(key): + if key not in linkgroups: linkgroups[key] = [] linkgroups[key].append(link) for group in linkgroups.values(): |