From ad9571550f6334e2ba32137611b10159559b32d4 Mon Sep 17 00:00:00 2001 From: "Tim ^.^" Date: Mon, 21 Oct 2024 02:16:41 +0100 Subject: [PATCH] fix(tuna-obs): Added song url to tuna-obs plugin (#2524) --- src/plugins/tuna-obs/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/tuna-obs/index.ts b/src/plugins/tuna-obs/index.ts index ea12f45f..edc2da87 100644 --- a/src/plugins/tuna-obs/index.ts +++ b/src/plugins/tuna-obs/index.ts @@ -16,6 +16,7 @@ interface Data { progress: number; status: string; title: string; + url: string; } export default createPlugin({ @@ -37,6 +38,7 @@ export default createPlugin({ duration: 0, album_url: '', album: undefined, + url: '', } as Data, start({ ipc }) { const secToMilisec = (t: number) => Math.round(Number(t) * 1e3); @@ -106,6 +108,7 @@ export default createPlugin({ this.data.artists = [songInfo.artist]; this.data.status = songInfo.isPaused ? 'stopped' : 'playing'; this.data.album = songInfo.album; + this.data.url = songInfo.url ?? ''; post(this.data); }); },