cleanup poster api

This commit is contained in:
j 2011-02-23 10:51:27 +01:00
parent 8586fa6f07
commit 8b45dd8460
2 changed files with 6 additions and 1 deletions

View file

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

View file

@ -91,6 +91,7 @@ INSTALLED_APPS = (
'oxdata.lookup',
'oxdata.poster',
'oxdata.cover',
)
LOGIN_REDIRECT_URL='/'