diff --git a/CustomApps/lyrics-plus/Providers.js b/CustomApps/lyrics-plus/Providers.js index 240959835f..9efa8c0df0 100644 --- a/CustomApps/lyrics-plus/Providers.js +++ b/CustomApps/lyrics-plus/Providers.js @@ -9,7 +9,7 @@ const Providers = { copyright: null, }; - const baseURL = "hm://lyrics/v1/track/"; + const baseURL = "wg://lyrics/v1/track/"; const id = info.uri.split(":")[2]; let body; try { @@ -20,7 +20,7 @@ const Providers = { const lines = body.lines; if (!lines || !lines.length) { - return { error: "No lyric", uri: info.uri }; + return { error: "No lyrics", uri: info.uri }; } if (typeof lines[0].time === "number") { @@ -58,7 +58,7 @@ const Providers = { throw ""; } } catch { - result.error = "No lyric"; + result.error = "No lyrics"; return result; } @@ -90,7 +90,7 @@ const Providers = { try { list = await ProviderNetease.findLyrics(info); } catch { - result.error = "No lyric"; + result.error = "No lyrics"; return result; } diff --git a/Extensions/popupLyrics.js b/Extensions/popupLyrics.js index 98fbf71483..b9628838e8 100644 --- a/Extensions/popupLyrics.js +++ b/Extensions/popupLyrics.js @@ -1,5 +1,3 @@ -// @ts-check - // NAME: Popup Lyrics // AUTHOR: khanhas // Netease API parser and UI from https://github.com/mantou132/Spotify-Lyrics @@ -81,13 +79,13 @@ function PopupLyrics() { class LyricProviders { static async fetchSpotify(info) { - const baseURL = "hm://lyrics/v1/track/"; + const baseURL = "wg://lyrics/v1/track/"; const id = info.uri.split(":")[2]; const body = await CosmosAsync.get(baseURL + id); const lines = body.lines; if (!lines || !lines.length || typeof lines[0].time !== "number") { - return { error: "No lyric" }; + return { error: "No lyrics" }; } const lyrics = lines.map((a) => ({ @@ -154,7 +152,7 @@ function PopupLyrics() { })); return { lyrics }; } else { - return { error: "No lyric" }; + return { error: "No lyrics" }; } } catch (err) { return { error: err.message }; @@ -185,7 +183,7 @@ function PopupLyrics() { let lyricStr = meta.lrc; if (!lyricStr || !lyricStr.lyric) { - return { error: "No lyric" }; + return { error: "No lyrics" }; } lyricStr = lyricStr.lyric; @@ -401,7 +399,7 @@ function PopupLyrics() { } } if (error || !sharedData.lyrics) { - sharedData = { error: "No lyric" }; + sharedData = { error: "No lyrics" }; } } @@ -719,7 +717,7 @@ function PopupLyrics() { drawText(lyricCtx, error, "red"); } } else if (!lyrics) { - drawText(lyricCtx, "No lyric"); + drawText(lyricCtx, "No lyrics"); } else if (audio.duration && lyrics.length) { renderLyrics(lyricCtx, lyrics, audio.currentTime); } else if (!audio.duration || lyrics.length === 0) {