From aa57ace7420bcbb4712d8aab0736f00115634c4a Mon Sep 17 00:00:00 2001 From: Jesus E Date: Sun, 28 May 2023 21:42:13 -0400 Subject: Fix music list extraction Closes #160 --- youtube/templates/watch.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'youtube/templates/watch.html') 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 %} {% for attribute in music_attributes %} - {{ track.get(attribute.lower(), '') }} + {% if attribute.lower() == 'title' and track['url'] is not none %} + {{ track.get(attribute.lower(), '') }} + {% else %} + {{ track.get(attribute.lower(), '') }} + {% endif %} {% endfor %} {% endfor %} -- cgit v1.2.3