|
|
|
|
@ -87,7 +87,9 @@ def list_movie_test():
|
|
|
|
|
movie_details.*, movie_paths.movie_path |
|
|
|
|
FROM |
|
|
|
|
movie_details |
|
|
|
|
JOIN movie_paths ON movie_paths.movie_id=movie_details.movie_id''' |
|
|
|
|
JOIN movie_paths ON movie_paths.movie_id=movie_details.movie_id |
|
|
|
|
ORDER BY |
|
|
|
|
movie_details.title''' |
|
|
|
|
|
|
|
|
|
# TODO: should probably loop on movie_id, and add a list of movie_paths because |
|
|
|
|
# there can be multiple paths associated with a movie_id |
|
|
|
|
@ -320,7 +322,7 @@ def parseTMDBResult(result, query_type):
|
|
|
|
|
parsed = view_result() |
|
|
|
|
|
|
|
|
|
parsed.id = result['id'] |
|
|
|
|
parsed.title = result['original_title'] |
|
|
|
|
parsed.title = result['title'] |
|
|
|
|
parsed.release_date = result['release_date'] |
|
|
|
|
parsed.overview = result['overview'] |
|
|
|
|
parsed.genre_ids = result['genre_ids'] |
|
|
|
|
|