feat(music): save lyrics beside the audio and keep song fields over remote

Song.lyrics_suffix writes the lyrics file; song fields set in get_tracks now reach a remote client.
This commit is contained in:
imSp4rky
2026-10-14 11:04:29 -06:00
parent d41bb73d9e
commit b107bca168
7 changed files with 51 additions and 22 deletions
+7
View File
@@ -42,3 +42,10 @@ def test_a_song_takes_only_the_language():
song = Song(id_="song-0001", service=SERVICE, name="Track 1", artist="A", album="B", track=1, disc=1, year=1999)
apply_enrich(song, "The Gold Seekers", 2017, Language.get("es"))
assert (song.name, song.year, str(song.language)) == ("Track 1", 1999, "es")
def test_a_song_takes_the_lyrics_set_in_get_tracks():
song = Song(id_="song-0001", service=SERVICE, name="Track 1", artist="A", album="B", track=1, disc=1)
info = {"name": "Track 1", "lyrics": "[00:01.00]Line", "lyrics_suffix": ".lrc"}
load_tracks(refreshing_service(info), song)
assert (song.lyrics, song.lyrics_suffix) == ("[00:01.00]Line", ".lrc")