Add structured lyrics storage and indexing (line/word timing, byte offsets)
Adds database.InsertLyrics/GetSongStructuredLyrics storing multiple lyrics entries per song with per-line start times and, when the source provides it, word-level cues carrying precomputed UTF-8 byte offsets. library.IndexLyrics wires this into the scanner: embedded plain-text tags are stored unsynced, and a same-basename sidecar .lrc (plain or Enhanced) is parsed and stored synced, with word cues when present. IndexFile now takes the media file's absolute path so lyrics indexing can locate sidecar files. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014r98AtcBbevpscWLsfwVvv
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- lyrics_lines needs its own synced start time: a line can be synced
|
||||
-- (has a start time) without necessarily having word-level cues (plain
|
||||
-- LRC vs Enhanced LRC), so the line's timing can't always be derived
|
||||
-- from its cues.
|
||||
ALTER TABLE lyrics_lines ADD COLUMN start_ms INTEGER;
|
||||
Reference in New Issue
Block a user