From 6ffc4e58d8d72613ec6bdce892c221ac54d5a367 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 3 Nov 2011 11:22:11 +0100 Subject: [PATCH] ignore posters known to have imdb id --- oxdata/lookup/cache.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/oxdata/lookup/cache.py b/oxdata/lookup/cache.py index 6f053ba..61252b7 100644 --- a/oxdata/lookup/cache.py +++ b/oxdata/lookup/cache.py @@ -20,6 +20,16 @@ def addPoster(m, url, site, site_id): def getIds(): for id in ox.web.impawards.getIds(): + if id in ( + '2005/night', + '2007/hands_of_the_dragon', + '2008/nosferatu_project', + '2009/murph', + '1962/well_bury_you', + '1974/matter_of_winning', + '2006/last_time_i_trust_you_with_anything', + ): + continue if models.MovieId.objects.all().filter(impawards_id=id).count() == 0: print 'impawards', ox.web.impawards.getUrl(id) data = ox.web.impawards.getData(id)