[music] Add listenbrainz support

This commit is contained in:
2026-05-31 11:21:11 -04:00
parent 12f49a6cee
commit bca90c97ae
9 changed files with 465 additions and 2 deletions

View File

@ -29,6 +29,14 @@
{% if artist.bandcamp_link %}<a href="{{artist.bandcamp_link}}"><img src="{% static "images/bandcamp-logo.png" %}" width=35></a>{% endif %}
{% if artist.allmusic_link %}<a href="{{artist.allmusic_link}}"><img src="{% static "images/allmusic-logo.png" %}" width=35></a>{% endif %}
</p>
<p>
{% if artist.theaudiodb_genre %}
<a href="{% url "music:artist_list" %}?genre={{artist.theaudiodb_genre|urlencode}}">{{artist.theaudiodb_genre}}</a> ({{genre_count}}){% if artist.theaudiodb_mood %} &middot; {% endif %}
{% endif %}
{% if artist.theaudiodb_mood %}
<a href="{% url "music:artist_list" %}?mood={{artist.theaudiodb_mood|urlencode}}">{{artist.theaudiodb_mood}}</a> ({{mood_count}})
{% endif %}
</p>
</div>
</div>
<div class="row">
@ -37,6 +45,27 @@
{% include "scrobbles/_chart_links.html" %}
{% endif %}
<div class="col-md">
{% if similar_artists %}
<h3>Similar artists</h3>
<div class="table-responsive">
<table class="table table-striped table-sm">
<thead>
<tr>
<th scope="col">Artist</th>
<th scope="col">Score</th>
</tr>
</thead>
<tbody>
{% for sa in similar_artists|slice:":10" %}
<tr>
<td>{% if sa.local_url %}<a href="{{sa.local_url}}">{{sa.name}}</a>{% else %}{{sa.name}}{% endif %}</td>
<td>{{sa.score}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
<h3>Top tracks</h3>
<div class="table-responsive">
<table class="table table-striped table-sm">