aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/templates/watch.html
diff options
context:
space:
mode:
authorJesus E <heckyel@riseup.net>2023-05-28 21:42:13 -0400
committerJesus E <heckyel@riseup.net>2023-05-28 21:42:13 -0400
commitaa57ace7420bcbb4712d8aab0736f00115634c4a (patch)
treeb475bda3b6ba4006b3611a931d310c8a57166914 /youtube/templates/watch.html
parent512798366c935f57cf4c583a1de6bcd9ab7bb680 (diff)
downloadyt-local-aa57ace7420bcbb4712d8aab0736f00115634c4a.tar.lz
yt-local-aa57ace7420bcbb4712d8aab0736f00115634c4a.tar.xz
yt-local-aa57ace7420bcbb4712d8aab0736f00115634c4a.zip
Fix music list extraction
Closes #160
Diffstat (limited to 'youtube/templates/watch.html')
-rw-r--r--youtube/templates/watch.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html
index 4030a18..9679a28 100644
--- a/youtube/templates/watch.html
+++ b/youtube/templates/watch.html
@@ -135,7 +135,11 @@
{% for track in music_list %}
<tr>
{% for attribute in music_attributes %}
- <td>{{ track.get(attribute.lower(), '') }}</td>
+ {% if attribute.lower() == 'title' and track['url'] is not none %}
+ <td><a href="{{ track['url'] }}">{{ track.get(attribute.lower(), '') }}</a></td>
+ {% else %}
+ <td>{{ track.get(attribute.lower(), '') }}</td>
+ {% endif %}
{% endfor %}
</tr>
{% endfor %}