SpotifyLyrics Update

Prevents sending a notification when Translating fails when no lyrics. (https://cdn.nest.rip/uploads/57b7de17-db84-4783-b298-2885b4e19ebc.png)
This commit is contained in:
Crxaw 2025-03-19 20:07:16 +00:00 committed by GitHub
parent 9a96d856a9
commit b754ca184d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -104,9 +104,8 @@ export const SpotifyLrcStore = proxyLazyWebpack(() => {
}
if (provider === Provider.Translated || provider === Provider.Romanized) {
if (!currentInfo?.useLyric) {
showNotif("No lyrics", `No lyrics to ${provider === Provider.Translated ? "translate" : "romanize"}`);
return;
if (!currentInfo?.useLyric || !currentInfo.lyricsVersions[currentInfo.useLyric]) {
return null;
}
const fetcher = provider === Provider.Translated ? translateLyrics : romanizeLyrics;
@ -148,5 +147,3 @@ export const SpotifyLrcStore = proxyLazyWebpack(() => {
});
return store;
});