Browse Source

make movie_list more compact

master
cinnaboot 7 years ago
parent
commit
8bbc87d938
  1. 4
      video_metadata/static/style.css
  2. 2
      video_metadata/templates/index.html
  3. 6
      video_metadata/views/tmdb.py

4
video_metadata/static/style.css

@ -18,7 +18,9 @@ nav ul li a, nav ul li span, header .action { display: block; padding: 0.5rem; }
input { color: #333; background-color: #eee; }
input.danger { color: #cc2f2e; }
.debug { background: lightgrey; padding: 1em; overflow: auto; border: 1px solid darkgrey }
.search_result { max-width: 400px; margin-bottom: 1em; padding: 1em; background: lightblue; border: 1px solid blue }
.search_result { overflow: auto; max-height: 100px; max-width: 300px; margin-bottom: 1em; padding: 0.5em 1em; background: lightblue; border: 1px solid blue }
.search_result h3, ul { border: 0; padding: 0; margin: 0 }
.search_result ul { font-size: 0.75em }
.arrow_submit { width: 3em; font-weight: bold; }
.content li { list-style: ' - '; }
.folder { background: lightblue; }

2
video_metadata/templates/index.html

@ -2,8 +2,8 @@
{% block header %}
<h1>{% block title %}INDEX PAGE!{% endblock %}</h1>
<div><a href="{{ url_for('tmdb.list_movie_test') }}">Movie Listing</a></div>
{% endblock %}
{% block content %}
<div><a href="{{ url_for('tmdb.list_movie_test') }}">Movie Listing</a></div>
{% endblock %}

6
video_metadata/views/tmdb.py

@ -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']

Loading…
Cancel
Save