add apple

This commit is contained in:
j 2011-07-30 13:22:53 +02:00
parent b5b94f3350
commit 896af63b5f

View file

@ -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?