diff --git a/ox/web/criterion.py b/ox/web/criterion.py index f1fbff3..4991dfb 100644 --- a/ox/web/criterion.py +++ b/ox/web/criterion.py @@ -56,7 +56,10 @@ def getData(id, timeout=ox.cache.cache_timeout): html_ = readUrlUnicode(result) result = findRe(html_, '(.*?)' % id) result = findRe(result, "src=\"(.*?)\"") - data["posters"] = [result.replace("_w100", "")] + if result: + data["posters"] = [result.replace("_w100", "")] + else: + data["posters"] = [] result = findRe(html, "