diff --git a/ox/web/imdb.py b/ox/web/imdb.py index c810b80..8e011cc 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -707,7 +707,7 @@ def get_episodes(imdbId, season=None): url = 'http://www.imdb.com/title/tt%s/episodes' % imdbId if season: url += '?season=%d' % season - data = cache.read_url(url) + data = cache.read_url(url).decode() for e in re.compile('
.*?
S(\d+), Ep(\d+)<\/div>\n<\/div>', re.DOTALL).findall(data): episodes['S%02dE%02d' % (int(e[1]), int(e[2]))] = e[0] else: