1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00
maloja/auxiliary/chromium_scrobbler/maloja-scrobbler/sites/spotify.js
2021-12-26 19:20:43 +01:00

13 lines
552 B
JavaScript

maloja_scrobbler_selector_playbar = "//footer[@data-testid='now-playing-bar']"
maloja_scrobbler_selector_metadata = ".//div[@data-testid='now-playing-widget']"
maloja_scrobbler_selector_title = ".//a[@data-testid='context-item-link']/text()"
maloja_scrobbler_selector_artists = ".//a[contains(@href,'/artist/')]"
maloja_scrobbler_selector_artist = "./text()"
maloja_scrobbler_selector_duration = ".//div[@data-testid='playback-duration']/text()"
maloja_scrobbler_selector_control = ".//button[@data-testid='control-button-playpause']/@aria-label"