This commit is contained in:
j 2011-11-02 00:02:20 +01:00
parent 2dcbd2ec27
commit 517cadf730

View file

@ -33,11 +33,11 @@ def getIds():
addPoster(m, poster, 'impawards.com', m.imdb_id) addPoster(m, poster, 'impawards.com', m.imdb_id)
for id in ox.web.criterion.getIds(): for id in ox.web.criterion.getIds():
if id in (626, 835): if id in ('626', '835'):
continue continue
if models.MovieId.objects.all().filter(criterion_id=id).count() == 0: if models.MovieId.objects.all().filter(criterion_id=id).count() == 0:
print 'criterion', id 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: if data and 'imdbId' in data:
m = models.getMovieIdByImdbId(data['imdbId']) m = models.getMovieIdByImdbId(data['imdbId'])
if not m.criterion_id: if not m.criterion_id: