ignore know unknowns, use ox cache fs backend
This commit is contained in:
parent
c18f9aa576
commit
2dcbd2ec27
2 changed files with 4 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue