From 5e2b3cf448955c6aac0afc45d1da4b370d7c6851 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 10 Jul 2014 09:38:36 +0200 Subject: [PATCH] fix imdb poster --- ox/web/imdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index 1decd33..0423d46 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -774,9 +774,9 @@ def get_movie_poster(imdbId): ''' info = ImdbCombined(imdbId) if 'posterId' in info: - url = "http://www.imdb.com/rg/action-box-title/primary-photo/media/rm%s/tt%s" % (info['posterId'], imdbId) + url = "http://www.imdb.com/media/rm%s/tt%s" % (info['posterId'], imdbId) data = read_url(url) - poster = find_re(data, 'img id="primary-img".*?src="(.*?)"') + poster = find_re(data, 'img.*?id="primary-img".*?src="(.*?)"') return poster elif 'series' in info: return get_movie_poster(info['series'])