From 5554c4b4b688736ca55a652ed7f278dbf1f675f1 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 14 Jan 2026 17:20:25 +0200 Subject: [PATCH] fix --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index ce08811..7323070 100644 --- a/index.js +++ b/index.js @@ -100,12 +100,13 @@ const post = ({ credentials: 'include', }); -const scrobble = ({ title, external_link }) => +const scrobble = ({ title, artist, external_link }) => fetch(`https://${instance}/api/v1/pleroma/scrobble`, { headers: headers(userBearer), referrerPolicy: 'same-origin', body: JSON.stringify({ title, + artist, external_link, }), method: 'POST', @@ -152,6 +153,7 @@ const loop = async () => { const scrobbleResult = await scrobble({ // artist: 'Peertube', title: 'Streaming on PeerTube', + artist: 'Peertube', external_link: `https://tube.ebin.club/w/${videoId}`, }); console.info('scrobble: ' + scrobbleResult.status);