1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Small fix for YT Music scrobbler reliability

This commit is contained in:
Krateng 2019-03-14 20:08:33 +01:00
parent 15ccc006a0
commit 9fc2ffe6a7

View File

@ -35,10 +35,11 @@ function party(tab) {
} }
if (importantPage) { 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) { function onPlaybackUpdate(request,sender) {
//console.log("Got update from Plex Web!") //console.log("Got update from Plex Web!")
if (request.type == "stopPlayback" && currentlyPlaying) { if (request.type == "stopPlayback" && currentlyPlaying) {