feat(synced-lyrics): multiple lyric sources (#2383)

Co-authored-by: JellyBrick <shlee1503@naver.com>
This commit is contained in:
Angelos Bouklis
2024-12-25 00:44:29 +02:00
committed by GitHub
parent 5c9ded8779
commit 533b96d1f6
28 changed files with 1527 additions and 447 deletions

View File

@ -18,8 +18,8 @@ export interface Section {
export interface Hit {
highlights: Highlight[];
index: Index;
type: Index;
index: ResultType;
type: ResultType;
result: Result;
}
@ -35,14 +35,10 @@ export interface Range {
end: number;
}
export enum Index {
Album = 'album',
Lyric = 'lyric',
Song = 'song',
}
export type ResultType = 'song' | 'album' | 'lyric';
export interface Result {
_type: Index;
_type: ResultType;
annotation_count?: number;
api_path: string;
artist_names?: string;