get_imdb
This commit is contained in:
parent
2dcbd2ec27
commit
517cadf730
1 changed files with 2 additions and 2 deletions
|
@ -33,11 +33,11 @@ def getIds():
|
|||
addPoster(m, poster, 'impawards.com', m.imdb_id)
|
||||
|
||||
for id in ox.web.criterion.getIds():
|
||||
if id in (626, 835):
|
||||
if id in ('626', '835'):
|
||||
continue
|
||||
if models.MovieId.objects.all().filter(criterion_id=id).count() == 0:
|
||||
print 'criterion', id
|
||||
data = ox.web.criterion.getData(id, imdb=True)
|
||||
data = ox.web.criterion.getData(id, get_imdb=True)
|
||||
if data and 'imdbId' in data:
|
||||
m = models.getMovieIdByImdbId(data['imdbId'])
|
||||
if not m.criterion_id:
|
||||
|
|
Loading…
Reference in a new issue