From 82ced02a5eebee8eff921c1436a3ff422b8bdb0c Mon Sep 17 00:00:00 2001 From: anytarsier67 <42589471+anytarseir67@users.noreply.github.com> Date: Mon, 5 Sep 2022 04:07:46 -0400 Subject: [PATCH 1/2] fix malformed json in tuna-obs --- plugins/tuna-obs/back.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/tuna-obs/back.js b/plugins/tuna-obs/back.js index 0a2bc3a3d3..34913997d8 100644 --- a/plugins/tuna-obs/back.js +++ b/plugins/tuna-obs/back.js @@ -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]; From 05d0ac963a80f8ab143541efc951a2862a9c33cf Mon Sep 17 00:00:00 2001 From: anytarseir67 <42589471+anytarseir67@users.noreply.github.com> Date: Sat, 7 Jan 2023 20:47:13 -0500 Subject: [PATCH 2/2] re-add cover_url --- plugins/tuna-obs/back.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/tuna-obs/back.js b/plugins/tuna-obs/back.js index 34913997d8..574562f18c 100644 --- a/plugins/tuna-obs/back.js +++ b/plugins/tuna-obs/back.js @@ -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];