aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/watch.html
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-07-07 17:29:25 -0700
committerJames Taylor <user234683@users.noreply.github.com>2019-07-07 17:29:25 -0700
commitb89d90a0d35a239ee4eb476eaf5e2d3404fe65ea (patch)
tree4e81324f60ca969c777e649ff3497ae0d1ca0241 /youtube/templates/watch.html
parent6261add37de1800c90b0942a77cca99baf0b1973 (diff)
downloadyt-local-b89d90a0d35a239ee4eb476eaf5e2d3404fe65ea.tar.lz
yt-local-b89d90a0d35a239ee4eb476eaf5e2d3404fe65ea.tar.xz
yt-local-b89d90a0d35a239ee4eb476eaf5e2d3404fe65ea.zip
watch_page: refactor music list into flask template
Diffstat (limited to 'youtube/templates/watch.html')
-rw-r--r--youtube/templates/watch.html21
1 files changed, 19 insertions, 2 deletions
diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html
index 122958c..85c87ae 100644
--- a/youtube/templates/watch.html
+++ b/youtube/templates/watch.html
@@ -185,14 +185,31 @@
<span>{{ format['resolution'] }}</span>
<span>{{ format['note'] }}</span>
</a>
-{% endfor %}
+{% endfor %}
</div>
</div>
<input class="checkbox" name="video_info_list" value="{{ video_info }}" form="playlist-edit" type="checkbox">
<span class="description">{{ description }}</span>
<div class="music-list">
-{{ music_list|safe }}
+ {% if music_list.__len__() != 0 %}
+ <hr>
+ <table>
+ <caption>Music</caption>
+ <tr>
+ {% for attribute in music_attributes %}
+ <th>{{ attribute }}</th>
+ {% endfor %}
+ </tr>
+ {% for track in music_list %}
+ <tr>
+ {% for attribute in music_attributes %}
+ <td>{{ track.get(attribute.lower(), '') }}</td>
+ {% endfor %}
+ </tr>
+ {% endfor %}
+ </table>
+ {% endif %}
</div>
{{ comments|safe }}
</article>