fix malformed json in tuna-obs

This commit is contained in:
anytarsier67
2022-09-05 04:07:46 -04:00
parent b843825f72
commit 82ced02a5e

View File

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