We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f8ca60 commit 24e593bCopy full SHA for 24e593b
src/providers/song-info.ts
@@ -142,7 +142,10 @@ const handleData = async (
142
const thumbnails = videoDetails.thumbnail?.thumbnails;
143
songInfo.imageSrc = thumbnails.at(-1)?.url.split('?')[0];
144
145
- if (songInfo.imageSrc && !(await net.fetch(songInfo.imageSrc)).ok) {
+ if (
146
+ songInfo.imageSrc &&
147
+ !(await net.fetch(songInfo.imageSrc, { method: 'HEAD' })).ok
148
+ ) {
149
songInfo.imageSrc = thumbnails.at(-1)?.url;
150
}
151
0 commit comments