allow wikipedia lookup
This commit is contained in:
parent
21f21e404e
commit
5556d60ace
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ def get_movie_id(request):
|
|||
elif 'criterion' in request.GET:
|
||||
criterion_id = request.GET['criterion']
|
||||
movie_id = models.MovieId.objects.get(criterion_id=criterion_id)
|
||||
elif 'wikipedia' in request.GET:
|
||||
wikipedia_id = request.GET['wikipedia']
|
||||
movie_id = models.MovieId.objects.get(wikipedia_id=wikipedia_id)
|
||||
if movie_id:
|
||||
movie_id.updateFromImdb()
|
||||
return movie_id
|
||||
|
|
Loading…
Reference in a new issue