return lists

This commit is contained in:
j 2016-09-18 13:39:22 +02:00
parent 546f518448
commit 7cda751666

View file

@ -68,8 +68,8 @@ def get_data(id, timeout=ox.cache.cache_timeout, get_imdb=False):
data["stills"] = [result]
data["trailers"] = []
else:
data["stills"] = filter(lambda x: x, [find_re(html, "\"thumbnailURL\", \"(.*?)\"")])
data["trailers"] = filter(lambda x: x, [find_re(html, "\"videoURL\", \"(.*?)\"")])
data["stills"] = list(filter(lambda x: x, [find_re(html, "\"thumbnailURL\", \"(.*?)\"")]))
data["trailers"] = list(filter(lambda x: x, [find_re(html, "\"videoURL\", \"(.*?)\"")]))
if timeout == ox.cache.cache_timeout:
timeout = -1