feat(music): add shared LRC and SRT lyric helpers to core music

This commit is contained in:
imSp4rky
2026-12-02 18:41:17 -07:00
parent 5f152fdace
commit e4940df438
5 changed files with 128 additions and 4 deletions
+4 -3
View File
@@ -199,9 +199,10 @@ Each subclass adds its own required fields on top of `id_` and `service`:
read: `album_artist`, `release_type`, `total_tracks`, `total_discs`, `genre`,
`explicit`, `isrc`, `upc`, `copyright`, `label`, `lyrics`, `synced_lyrics`,
`lyrics_suffix`, and `artwork_url`. Read the class for the current list. Give `lyrics` as
plain text: the tagger embeds it as is. With `synced_lyrics` (timed LRC or TTML) and
`lyrics_suffix` (`".lrc"`, `".ttml"`), unshackle also saves the timed lyrics beside the
final audio file under that suffix.
plain text: the tagger embeds it as is. With `synced_lyrics` (timed LRC, SRT or TTML) and
`lyrics_suffix` (`".lrc"`, `".srt"`, `".ttml"`), unshackle also saves the timed lyrics beside the
final audio file under that suffix. To make LRC or SRT text from millisecond times, use
`lrc_stamp`, `cues_to_lrc`, `lrc_to_cues` and `cues_to_srt` from `unshackle.core.music`.
You can set these fields in `get_tracks()` too, and a remote client gets them back.
For a playlist whose songs keep the tags of their own album, give `position` (a positive integer,