From 0b9a3966b0d79fd5748b82d28cbaaf595cff902b Mon Sep 17 00:00:00 2001 From: j Date: Tue, 1 Jan 2019 21:09:05 +0100 Subject: [PATCH] python2 fix --- ox/web/imdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: