From 0ceb70b27e9c7e0be25059a7754244a1b65e0624 Mon Sep 17 00:00:00 2001 From: Krateng Date: Mon, 23 Mar 2020 17:24:58 +0100 Subject: [PATCH] Updated Spotify scrobbling --- scrobblers/chromium/manifest.json | 2 +- scrobblers/chromium/sites/spotify.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scrobblers/chromium/manifest.json b/scrobblers/chromium/manifest.json index 03482a3..0ccc4b1 100644 --- a/scrobblers/chromium/manifest.json +++ b/scrobblers/chromium/manifest.json @@ -1,6 +1,6 @@ { "name": "Maloja Scrobbler", - "version": "1.4", + "version": "1.5", "description": "Scrobbles tracks from various sites to your Maloja server", "manifest_version": 2, "permissions": ["activeTab", diff --git a/scrobblers/chromium/sites/spotify.js b/scrobblers/chromium/sites/spotify.js index 8ca0341..8858687 100644 --- a/scrobblers/chromium/sites/spotify.js +++ b/scrobblers/chromium/sites/spotify.js @@ -3,8 +3,8 @@ maloja_scrobbler_selector_playbar = "//div[@class='now-playing-bar']" maloja_scrobbler_selector_metadata = ".//div[@class='now-playing-bar__left']" -maloja_scrobbler_selector_title = ".//div[contains(@class,'track-info__name')]//a/text()" -maloja_scrobbler_selector_artists = ".//div[contains(@class,'track-info__artists')]//a" +maloja_scrobbler_selector_title = ".//a[@data-testid='nowplaying-track-link']/text()" +maloja_scrobbler_selector_artists = ".//a[contains(@href,'/artist/')]" maloja_scrobbler_selector_artist = "./text()" maloja_scrobbler_selector_duration = ".//div[@class='playback-bar__progress-time'][2]/text()"