mirror of
https://github.com/navidrome/navidrome.git
synced 2026-04-28 03:19:38 +00:00
|
Some checks failed
Pipeline: Test, Lint, Build / Lint i18n files (push) Has been cancelled
Pipeline: Test, Lint, Build / Test JS code (push) Has been cancelled
Pipeline: Test, Lint, Build / Get version info (push) Has been cancelled
Pipeline: Test, Lint, Build / Lint Go code (push) Has been cancelled
Pipeline: Test, Lint, Build / Test Go code (push) Has been cancelled
Pipeline: Test, Lint, Build / Check Docker configuration (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (push) Has been cancelled
Pipeline: Test, Lint, Build / Build-1 (push) Has been cancelled
Pipeline: Test, Lint, Build / Build-2 (push) Has been cancelled
Pipeline: Test, Lint, Build / Build-3 (push) Has been cancelled
Pipeline: Test, Lint, Build / Upload Linux PKG (push) Has been cancelled
Pipeline: Test, Lint, Build / Build-4 (push) Has been cancelled
Pipeline: Test, Lint, Build / Build-5 (push) Has been cancelled
Pipeline: Test, Lint, Build / Build-6 (push) Has been cancelled
Pipeline: Test, Lint, Build / Build-7 (push) Has been cancelled
Pipeline: Test, Lint, Build / Build-8 (push) Has been cancelled
Pipeline: Test, Lint, Build / Build-9 (push) Has been cancelled
Pipeline: Test, Lint, Build / Push Docker manifest (push) Has been cancelled
Pipeline: Test, Lint, Build / Build Windows installers (push) Has been cancelled
Pipeline: Test, Lint, Build / Package/Release (push) Has been cancelled
* fix: handle UTF-8 BOM in lyrics and playlist files Added UTF-8 BOM (Byte Order Mark) detection and stripping for external lyrics files and playlist files. This ensures that files with BOM markers are correctly parsed and recognized as synced lyrics or valid playlists. The fix introduces a new ioutils package with UTF8Reader and UTF8ReadFile functions that automatically detect and remove UTF-8, UTF-16 LE, and UTF-16 BE BOMs. These utilities are now used when reading external lyrics and playlist files to ensure consistent parsing regardless of BOM presence. Added comprehensive tests for BOM handling in both lyrics and playlists, including test fixtures with actual BOM markers to verify correct behavior. * test: add test for UTF-16 LE encoded LRC files Signed-off-by: Deluan <deluan@navidrome.org> --------- Signed-off-by: Deluan <deluan@navidrome.org> |
||
|---|---|---|
| .. | ||
| #snapshot | ||
| $Recycle.Bin | ||
| ...unhidden_folder | ||
| .hidden_folder | ||
| artist | ||
| empty_folder | ||
| ignored_folder | ||
| invalid-files | ||
| playlists | ||
| ._02 Invisible.mp3 | ||
| 01 Invisible (RED) Edit Version.m4a | ||
| 01 Invisible (RED) Edit Version.mp3 | ||
| bom-test.lrc | ||
| bom-utf16-test.lrc | ||
| deezer.search.artist.json | ||
| empty.txt | ||
| index.html | ||
| itunes-library.xml | ||
| lastfm.album.getinfo.empty_urls.json | ||
| lastfm.album.getinfo.json | ||
| lastfm.artist.getinfo.json | ||
| lastfm.artist.getinfo.unknown.json | ||
| lastfm.artist.getsimilar.json | ||
| lastfm.artist.getsimilar.unknown.json | ||
| lastfm.artist.gettoptracks.json | ||
| lastfm.artist.gettoptracks.unknown.json | ||
| listenbrainz.nowplaying.request.json | ||
| listenbrainz.scrobble.request.json | ||
| mixed-lyrics.flac | ||
| no_replaygain.mp3 | ||
| robots.txt | ||
| spotify.search.artist.json | ||
| symlink | ||
| symlink2dir | ||
| test.aiff | ||
| test.flac | ||
| test.lrc | ||
| test.m4a | ||
| test.mp3 | ||
| test.ogg | ||
| test.tak | ||
| test.txt | ||
| test.wav | ||
| test.wma | ||
| test.wv | ||
| zero_replaygain.mp3 | ||