mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 04:41:47 +00:00
fix(discord): use net.fetch instead of fetch
This commit is contained in:
@ -142,7 +142,7 @@ const handleData = async (
|
|||||||
const thumbnails = videoDetails.thumbnail?.thumbnails;
|
const thumbnails = videoDetails.thumbnail?.thumbnails;
|
||||||
songInfo.imageSrc = thumbnails.at(-1)?.url.split('?')[0];
|
songInfo.imageSrc = thumbnails.at(-1)?.url.split('?')[0];
|
||||||
|
|
||||||
if (songInfo.imageSrc && !(await fetch(songInfo.imageSrc)).ok) {
|
if (songInfo.imageSrc && !(await net.fetch(songInfo.imageSrc)).ok) {
|
||||||
songInfo.imageSrc = thumbnails.at(-1)?.url;
|
songInfo.imageSrc = thumbnails.at(-1)?.url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user