aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/watch.html
diff options
context:
space:
mode:
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>