diff options
author | Jesus E <heckyel@riseup.net> | 2023-05-28 21:42:13 -0400 |
---|---|---|
committer | Jesus E <heckyel@riseup.net> | 2023-05-28 21:42:13 -0400 |
commit | aa57ace7420bcbb4712d8aab0736f00115634c4a (patch) | |
tree | b475bda3b6ba4006b3611a931d310c8a57166914 /youtube/templates | |
parent | 512798366c935f57cf4c583a1de6bcd9ab7bb680 (diff) | |
download | yt-local-aa57ace7420bcbb4712d8aab0736f00115634c4a.tar.lz yt-local-aa57ace7420bcbb4712d8aab0736f00115634c4a.tar.xz yt-local-aa57ace7420bcbb4712d8aab0736f00115634c4a.zip |
Fix music list extraction
Closes #160
Diffstat (limited to 'youtube/templates')
-rw-r--r-- | youtube/templates/watch.html | 6 |
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 %} |