From 92a8480d79d06fed9103097032ff7fcbe0d4763d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 28 Feb 2013 20:12:52 +0000 Subject: [PATCH] only call getId if using IMDb ids --- pandora/item/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/item/views.py b/pandora/item/views.py index 6aa35345..d66ba597 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -375,8 +375,9 @@ def findId(request): response['data']['items'] = [ i.get_json(['title', 'director', 'year', 'id']) for i in qs ] + if not response['data']['items'] \ - and len(data['id']) == 7 \ + and settings.USE_IMDB \ and settings.DATA_SERVICE: r = models.external_data('getId', data) if r['status']['code'] == 200: