fix(openverse): decode HTML entities in titles and creators

Openverse sends some texts HTML-encoded, so "Angus & Friends" showed up
as it came. Error messages are in German like the rest of the interface.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
fraujulianandClaude Fable 5.2 committed 2026-11-23 14:22:49 +01:00
1 parent f0726bc9fa
commit 44d07a10df
4 files changed
+30 -19

No files matched your search

@@ -16,9 +16,9 @@ public class OpenverseController(OpenverseClient client, SongRepository songs)
public async Task<Song> ImportAsync(OpenverseTrack track, CancellationToken cancellationToken = default)
{
if (track.Duration is not { } duration)
throw new OpenverseException("This result has no duration and cannot be imported.");
throw new OpenverseException("Dieses Ergebnis hat keine Dauer und kann nicht importiert werden.");
if (track.Id.Length > 0 && ImportedIds().Contains(track.Id))
throw new OpenverseException($"\"{track.Title}\" is already in the library.");
throw new OpenverseException($"\"{track.Title}\" ist bereits in der Bibliothek.");
var path = await client.DownloadAsync(track, cancellationToken);
var song = new Song