Improvements merge metadata upload format

Music icon only visible once if more than one audio format available
This commit is contained in:
Ozzie Isaacs
2024-08-18 16:45:42 +02:00
parent 0f9b5d08e9
commit 6717683ac3
13 changed files with 90 additions and 85 deletions
+2 -4
View File
@@ -62,11 +62,9 @@
<a class="author-name" href="{{url_for('web.books_list', data='author', sort_param='stored', book_id=author.id) }}">{{author.name.replace('|',',')|shortentitle(30)}}</a>
{% endif %}
{% endfor %}
{% for format in entry.Books.data %}
{% if format.format|lower in g.constants.EXTENSIONS_AUDIO %}
{% if entry.Books.data|music %}
<span class="glyphicon glyphicon-music"></span>
{% endif %}
{% endfor %}
{% endif %}
</p>
{% if entry.Books.series.__len__() > 0 %}
<p class="series">