add apple
This commit is contained in:
parent
b5b94f3350
commit
896af63b5f
1 changed files with 6 additions and 0 deletions
|
@ -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?
|
||||
|
||||
|
|
Loading…
Reference in a new issue