From 8598b2c77177db0fb7f4ccc0aa0232deba559251 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 11 Aug 2010 15:19:26 +0200 Subject: [PATCH] disable debug output --- oxdata/poster/models.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/oxdata/poster/models.py b/oxdata/poster/models.py index 911e6d7..ddf39d0 100644 --- a/oxdata/poster/models.py +++ b/oxdata/poster/models.py @@ -102,8 +102,8 @@ def getPosterUrls(m): p.save() if m.imdb_id: - if settings.DEBUG: - print 'imdb' + #if settings.DEBUG: + # print 'imdb' poster = ox.web.imdb.getMoviePoster(m.imdb_id) if poster: addPoster(poster, 'imdb.com', m.imdb_id) @@ -112,26 +112,24 @@ def getPosterUrls(m): #for poster in ox.web.movieposterdb.getData(m.imdb_id)['posters']: # addPoster(poster, 'movieposterdb.com', m.imdb_id) if m.criterion_id: - if settings.DEBUG: - print 'criterion', m.criterion_id + #if settings.DEBUG: + # print 'criterion', m.criterion_id for poster in ox.web.criterion.getData(m.criterion_id)['posters']: addPoster(poster, 'criterion.com', m.criterion_id) if m.wikipedia_id: - if settings.DEBUG: - print 'wikipedia' + #if settings.DEBUG: + # print 'wikipedia' poster = ox.web.wikipedia.getPosterUrl(m.wikipedia_id) if poster: if PosterCache.objects.all().filter(url=poster).count() == 0: addPoster(poster, 'wikipedia.org', m.wikipedia_id) if m.impawards_id: - if settings.DEBUG: - print 'impawards' + #if settings.DEBUG: + # print 'impawards' data = ox.web.impawards.getData(m.impawards_id) if data and 'imdbId' in data: for poster in data['posters']: addPoster(poster, 'impawards.com', m.imdb_id) - print 'done' - #fixme: get 0xdb still, possibly imdb still as fallback?