diff --git a/src/equicordplugins/musicControls/tidal/lyrics/components/modal.tsx b/src/equicordplugins/musicControls/tidal/lyrics/components/modal.tsx index af8c20abc..a3589955a 100644 --- a/src/equicordplugins/musicControls/tidal/lyrics/components/modal.tsx +++ b/src/equicordplugins/musicControls/tidal/lyrics/components/modal.tsx @@ -42,7 +42,6 @@ export function LyricsModal({ rootProps }: { rootProps: ModalProps; }) { const { track, lyrics, currLrcIndex } = useLyrics({ scroll: false }); const currentLyrics = lyrics || null; const position = track ? TidalStore.mPosition : 0; - const { TidalSyncMode: SyncMode } = settings.use(["TidalSyncMode"]); return ( @@ -62,38 +61,7 @@ export function LyricsModal({ rootProps }: { rootProps: ModalProps; }) { > {formatTime(line.time)} - {SyncMode === "character" && line.characters && line.characters.length > 0 && line.words && line.words.length > 0 ? ( - line.words.map((word, wIdx) => ( - - {word.characters.map((char, j) => { - const charActive = position / 1000 >= char.time && position / 1000 < char.endTime; - return ( - - {char.char} - - ); - })} - {wIdx < line.words.length - 1 && } - - )) - ) : SyncMode === "character" && line.characters && line.characters.length > 0 ? ( - line.characters.map((char, j) => { - const charActive = position / 1000 >= char.time && position / 1000 < char.endTime; - return ( - - {char.char} - - ); - }) - ) : SyncMode === "word" && line.words && line.words.length > 0 ? ( + {( line.words.map((word, j) => { const wordActive = position / 1000 >= word.time && position / 1000 < word.endTime; return ( @@ -107,7 +75,7 @@ export function LyricsModal({ rootProps }: { rootProps: ModalProps; }) { ); }) ) : ( - line.text || NoteSvg(cl("modal-note")) + line.text || NoteSvg(cl("modal-note")) )} )) diff --git a/src/equicordplugins/musicControls/tidal/lyrics/types.ts b/src/equicordplugins/musicControls/tidal/lyrics/types.ts index a4a3cecf4..691241d8b 100644 --- a/src/equicordplugins/musicControls/tidal/lyrics/types.ts +++ b/src/equicordplugins/musicControls/tidal/lyrics/types.ts @@ -7,6 +7,9 @@ export interface EnhancedLyric { time: number; text: string; + words?: Word[]; + confidence?: null; + characters?: Character[]; } interface Character {