From 896af63b5ffd7c191fdf52ea8cfa28b9ad866e65 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 30 Jul 2011 13:22:53 +0200 Subject: [PATCH] add apple --- oxdata/poster/models.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/oxdata/poster/models.py b/oxdata/poster/models.py index df45315..9ed26c9 100644 --- a/oxdata/poster/models.py +++ b/oxdata/poster/models.py @@ -15,6 +15,7 @@ import ox.web.criterion import ox.web.movieposterdb import ox.web.imdb import ox.web.impawards +import ox.web.apple from oxdata.lookup.models import MovieId @@ -140,5 +141,10 @@ def getPosterUrls(m): for poster in data['posters']: addPoster(poster, 'impawards.com', m.imdb_id) + if m.title and m.director: + data = ox.web.apple.getMovieData(m.title, m.director) + if data and 'poster' in data: + addPoster(data['poster'], 'apple.com', m.imdb_id) + #fixme: get 0xdb still, possibly imdb still as fallback?