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()"