Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not an issue but a change. Spotify Track info fix #1035

Open
novafurry opened this issue Apr 22, 2023 · 1 comment
Open

Not an issue but a change. Spotify Track info fix #1035

novafurry opened this issue Apr 22, 2023 · 1 comment

Comments

@novafurry
Copy link

novafurry commented Apr 22, 2023

Hi all,
I found that spotify's info was not changing, so I made a small change to the file /js/controllers/SpotifyController.js.
I have changed the BaseController to the following

new BaseController({
   siteName: "Spotify",
   play: ".player-controls__buttons > button",
   pause: ".player-controls__buttons > button",
   playNext: ".player-controls__right button:nth-child(1)",
   playPrev: ".player-controls__left button:nth-child(2)",
   like: ".now-playing-bar div[class*=heart] button",
   dislike: ".now-playing-bar button[class*=block]",
   buttonSwitch: true,
   mute: ".now-playing-bar button[class*=volume]",
   song: ".ZcNcu7WZgOAz_Mkcoff3>div>div>div>div>div>span>a",
   artist: ".gpNta6i8q3KYJC6WBZQC",
   art: ".deomraqfhIAoSB3SgXpu>div>div:nth-child(1)>a>div>div>img",

   // Messy nth-child selectors, but there is no other class/id/attribute information to distinguish the two times
   currentTime: ".now-playing-bar .playback-bar__progress-time:nth-child(1)",
   totalTime: ".now-playing-bar .playback-bar__progress-time:nth-child(3)"
 });

Fixed zip: https://github.com/SDWaps/misc-files/raw/main/StreamKeys%20Update%20by%20Foxish.zip
Tutorial to install: https://bashvlas.com/blog/install-chrome-extension-in-developer-mode/

youtube.com/@FoxishYT

@GarethBlain
Copy link
Contributor

I've already got a PR in for this fix and it works on the master branch but that's not released yet.
If you build it your self it does work though. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants