This commit is contained in:
j 2010-11-18 16:29:04 +01:00
parent 1ef514ef4c
commit 8586fa6f07

View file

@ -11,8 +11,8 @@ import models
def get_movie_id(request):
movie_id = None
if 'movieId' in request.GET:
movieId = request.GET['movieId']
if 'itemId' in request.GET:
movieId = request.GET['itemId']
if len(movieId) == 7:
movie_id = models.getMovieIdByImdbId(imdb_id=movieId)
else: