summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-11 23:34:58 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-11 23:34:58 +0100
commitdb34c2493babf7a0313fb72ac2349c324d12d0ae (patch)
treec0d108dd7c993a32d8fd636e0ee571c6c9aed4af /module/plugins
parent[SkipRev] Fix https://github.com/pyload/pyload/issues/1036 (diff)
downloadpyload-db34c2493babf7a0313fb72ac2349c324d12d0ae.tar.xz
[SimpleHoster] Fix previous commit
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/internal/SimpleHoster.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index 3bdaa5aef..fa1ea45f2 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -114,10 +114,15 @@ def parseFileInfo(plugin, url="", html=""):
#@TODO: Remove in 0.4.10
#@NOTE: Every plugin must have own parseInfos classmethod to work with 0.4.10
def create_getInfo(plugin):
+
+ def generator(list):
+ for x in list:
+ yield x
+
if hasattr(plugin, "parseInfos"):
- fn = lambda urls: map(yield, (info['name'], info['size'], info['status'], info['url']) for info in plugin.parseInfos(urls))
+ fn = lambda urls: generator((info['name'], info['size'], info['status'], info['url']) for info in plugin.parseInfos(urls))
else:
- fn = lambda urls: map(yield, parseFileInfo(url) for url in urls)
+ fn = lambda urls: generator(parseFileInfo(url) for url in urls)
return fn
@@ -183,7 +188,7 @@ def secondsToMidnight(gmt=0):
class SimpleHoster(Hoster):
__name__ = "SimpleHoster"
__type__ = "hoster"
- __version__ = "0.95"
+ __version__ = "0.96"
__pattern__ = r'^unmatchable$'