mirror of
https://github.com/Equicord/Equicord.git
synced 2025-04-01 13:11:57 -04:00
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:
parent
9a96d856a9
commit
b754ca184d
1 changed files with 2 additions and 5 deletions
|
@ -104,9 +104,8 @@ export const SpotifyLrcStore = proxyLazyWebpack(() => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (provider === Provider.Translated || provider === Provider.Romanized) {
|
if (provider === Provider.Translated || provider === Provider.Romanized) {
|
||||||
if (!currentInfo?.useLyric) {
|
if (!currentInfo?.useLyric || !currentInfo.lyricsVersions[currentInfo.useLyric]) {
|
||||||
showNotif("No lyrics", `No lyrics to ${provider === Provider.Translated ? "translate" : "romanize"}`);
|
return null;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const fetcher = provider === Provider.Translated ? translateLyrics : romanizeLyrics;
|
const fetcher = provider === Provider.Translated ? translateLyrics : romanizeLyrics;
|
||||||
|
@ -148,5 +147,3 @@ export const SpotifyLrcStore = proxyLazyWebpack(() => {
|
||||||
});
|
});
|
||||||
return store;
|
return store;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue