Fix music list extraction

Closes #160
This commit is contained in:
Jesus E
2023-05-28 21:42:13 -04:00
parent 512798366c
commit aa57ace742
4 changed files with 39 additions and 1 deletions

View File

@@ -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 %}