fix tuna time update

This commit is contained in:
Araxeus
2021-11-10 18:37:16 +02:00
parent ccfe7434bf
commit 9a7baeac23
2 changed files with 34 additions and 19 deletions

View File

@ -45,7 +45,6 @@ const songInfo = {
songDuration: 0,
elapsedSeconds: 0,
url: "",
videoId: "",
};
const handleData = async (responseText, win) => {
@ -58,7 +57,6 @@ const handleData = async (responseText, win) => {
songInfo.image = await getImage(songInfo.imageSrc);
songInfo.uploadDate = data?.microformat?.microformatDataRenderer?.uploadDate;
songInfo.url = data?.microformat?.microformatDataRenderer?.urlCanonical?.split("&")[0];
songInfo.videoId = data?.videoDetails?.videoId;
// used for options.resumeOnStart
config.set("url", data?.microformat?.microformatDataRenderer?.urlCanonical);