This commit is contained in:
Araxeus
2021-12-01 21:44:48 +02:00
parent 2c39c0efed
commit 8ce4b5b297
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ const handleData = async (responseText, win) => {
songInfo.elapsedSeconds = videoDetails.elapsedSeconds;
songInfo.isPaused = videoDetails.isPaused;
songInfo.videoId = videoDetails.videoId;
songInfo.album = data?.videoDetails?.album
songInfo.album = data?.videoDetails?.album; // Will be undefined if video exist
const oldUrl = songInfo.imageSrc;
songInfo.imageSrc = videoDetails.thumbnail?.thumbnails?.pop()?.url.split("?")[0];