REFACTOR: DIFFERENT PLAYLIST #91

This commit is contained in:
Terry Geng
2020-03-06 01:39:08 +08:00
parent ce25fcabee
commit b6bb449874
8 changed files with 203 additions and 124 deletions

View File

@ -26,7 +26,11 @@
<span class="badge badge-secondary">{{ m.display_type() }}</span>
<br>
{% if m.type == 'file' %}
{{ m.artist }}
{% if m.artist %}
{{ m.artist }}
{% else %}
??
{% endif %}
{% elif m.type == 'url_from_playlist' %}
<a href="{{ m.playlist_url }}"><i>{{ m.playlist_title|truncate(50) }}</i></a>
{% else %}