diff --git a/oxdata/lookup/cache.py b/oxdata/lookup/cache.py index c30550e..6f053ba 100644 --- a/oxdata/lookup/cache.py +++ b/oxdata/lookup/cache.py @@ -33,9 +33,11 @@ def getIds(): addPoster(m, poster, 'impawards.com', m.imdb_id) for id in ox.web.criterion.getIds(): + 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) + data = ox.web.criterion.getData(id, imdb=True) if data and 'imdbId' in data: m = models.getMovieIdByImdbId(data['imdbId']) if not m.criterion_id: diff --git a/oxdata/settings.py b/oxdata/settings.py index 3379fe4..c941fae 100644 --- a/oxdata/settings.py +++ b/oxdata/settings.py @@ -57,7 +57,7 @@ STATIC_ROOT = join(PROJECT_ROOT, 'static') DATA_ROOT = join(PROJECT_ROOT, 'data') CACHE_ROOT = join(PROJECT_ROOT, 'cache') -os.environ['oxCACHE'] = CACHE_ROOT +os.environ['oxCACHE'] = 'fs:' + CACHE_ROOT # URL that handles the media served from MEDIA_ROOT. Make sure to use a