From 9fc2ffe6a701bdd1a2c100488ac69f6566369d96 Mon Sep 17 00:00:00 2001 From: Krateng Date: Thu, 14 Mar 2019 20:08:33 +0100 Subject: [PATCH] Small fix for YT Music scrobbler reliability --- scrobblers/chromium-youtubemusic/background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scrobblers/chromium-youtubemusic/background.js b/scrobblers/chromium-youtubemusic/background.js index b8c6b27..cf22d48 100644 --- a/scrobblers/chromium-youtubemusic/background.js +++ b/scrobblers/chromium-youtubemusic/background.js @@ -35,10 +35,11 @@ function party(tab) { } if (importantPage) { - chrome.tabs.executeScript(tab.id,{"file":"contentScript.js"}) + window.setTimeout(function(){chrome.tabs.executeScript(tab.id,{"file":"contentScript.js"})},1000); // youtube for some reason decides to not update the artist immediately } } + function onPlaybackUpdate(request,sender) { //console.log("Got update from Plex Web!") if (request.type == "stopPlayback" && currentlyPlaying) {