diff options
author | zoidberg10 <zoidberg@mujmail.cz> | 2011-09-23 12:25:18 +0200 |
---|---|---|
committer | zoidberg10 <zoidberg@mujmail.cz> | 2011-09-23 12:25:18 +0200 |
commit | 2839c54c090f2601fcecd0f7fdaeacc40c7716f5 (patch) | |
tree | bc6f0524b004425d9bed301e4d34792df9054495 /module/plugins/crypter/MultiloadCz.py | |
parent | fixed json import (diff) | |
download | pyload-2839c54c090f2601fcecd0f7fdaeacc40c7716f5.tar.xz |
plugins: czshare premium, czshare/quickshare/filefactory folders
Diffstat (limited to 'module/plugins/crypter/MultiloadCz.py')
-rw-r--r-- | module/plugins/crypter/MultiloadCz.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/module/plugins/crypter/MultiloadCz.py b/module/plugins/crypter/MultiloadCz.py index e8dff403e..2c71b8fea 100644 --- a/module/plugins/crypter/MultiloadCz.py +++ b/module/plugins/crypter/MultiloadCz.py @@ -7,7 +7,7 @@ class MultiloadCz(Crypter): __name__ = "MultiloadCz" __type__ = "crypter" __pattern__ = r"http://.*multiload.cz/(stahnout|slozka)/.*" - __version__ = "0.3" + __version__ = "0.4" __description__ = """multiload.cz""" __config__ = [("usedHoster", "str", "Prefered hoster list (bar-separated) ", ""), ("ignoredHoster", "str", "Ignored hoster list (bar-separated) ", "")] @@ -29,14 +29,11 @@ class MultiloadCz(Crypter): found = re.findall(self.LINK_PATTERN, self.html) if found: prefered_set = set(self.getConfig("usedHoster").split('|')) - def fp(x): return x[0] in prefered_set - def m(x): return x[1] - new_links.extend(map(m,filter(fp, found))) + new_links.extend([x[1] for x in found if x[0] in prefered_set]) if not new_links: ignored_set = set(self.getConfig("ignoredHoster").split('|')) - def fi(x): return x[0] not in ignored_set - new_links.extend(map(m,filter(fi, found))) + new_links.extend([x[1] for x in found if x[0] not in ignored_set]) if new_links: self.core.files.addLinks(new_links, self.pyfile.package().id) |