diff --git a/src/main/features/core/lyrics/genius.ts b/src/main/features/core/lyrics/genius.ts index c5851d05c..1abaa3cdc 100644 --- a/src/main/features/core/lyrics/genius.ts +++ b/src/main/features/core/lyrics/genius.ts @@ -1,6 +1,7 @@ import axios, { AxiosResponse } from 'axios'; import { load } from 'cheerio'; import type { InternetProviderLyricResponse, QueueSong } from '/@/renderer/api/types'; +import { LyricSource } from '../../../../renderer/types'; const SEARCH_URL = 'https://genius.com/api/search/song'; @@ -8,7 +9,7 @@ const SEARCH_URL = 'https://genius.com/api/search/song'; interface GeniusResponse { artist: string; - title: string; + name: string; url: string; } @@ -34,7 +35,7 @@ async function getSongURL(metadata: QueueSong): Promise { @@ -37,7 +38,7 @@ async function getSongId(metadata: QueueSong): Promise; diff --git a/src/renderer/features/lyrics/synchronized-lyrics.tsx b/src/renderer/features/lyrics/synchronized-lyrics.tsx index d7e542f4a..8342b8970 100644 --- a/src/renderer/features/lyrics/synchronized-lyrics.tsx +++ b/src/renderer/features/lyrics/synchronized-lyrics.tsx @@ -279,7 +279,7 @@ export const SynchronizedLyrics = ({ <> diff --git a/src/renderer/features/lyrics/unsynchronized-lyrics.tsx b/src/renderer/features/lyrics/unsynchronized-lyrics.tsx index d57800973..8a95b6b73 100644 --- a/src/renderer/features/lyrics/unsynchronized-lyrics.tsx +++ b/src/renderer/features/lyrics/unsynchronized-lyrics.tsx @@ -37,7 +37,7 @@ export const UnsynchronizedLyrics = ({ <>