re-add cover_url

This commit is contained in:
anytarseir67
2023-01-07 20:47:13 -05:00
committed by GitHub
parent 82ced02a5e
commit 05d0ac963a

View File

@ -6,6 +6,7 @@ const registerCallback = require("../../providers/song-info");
const secToMilisec = t => Math.round(Number(t) * 1e3);
const data = {
cover: '',
cover_url: '',
title: '',
artists: [],
status: '',
@ -42,6 +43,7 @@ module.exports = async (win) => {
data.duration = secToMilisec(songInfo.songDuration)
data.progress = secToMilisec(songInfo.elapsedSeconds)
data.cover = songInfo.imageSrc;
data.cover_url = songInfo.imageSrc;
data.album_url = songInfo.imageSrc;
data.title = songInfo.title;
data.artists = [songInfo.artist];