cli icon indicating copy to clipboard operation
cli copied to clipboard

Spicetify WebNowPlaying.js extension not connecting to Rainmeter whilst WebNowPlaying companion for both firefox and chrome have no problem

Open potatohub741 opened this issue 5 years ago • 57 comments

ℹ Computer information

  • Spotify version: 1.1.62.583.gdac868ed-a
  • Spicetify version: 2.5.0-itsmeow-patch4

📝 Provide detailed reproduction steps (if any)

  1. Install spotify version 1.1.62.583.gdac868ed-a and close window
  2. Create folder "Update" in %localappdata%\spotify and remove all groups in permissions
  3. Run "Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/khanhas/spicetify-cli/master/install.ps1" | Invoke-Expression" in PowerShell window
  4. Run command "spicetify"
  5. Run command "spicetify backup apply enable-devtool"
  6. Close spotify
  7. Run command "spicetify config extensions webnowplaying.js"
  8. Run command "spicetify apply"
  9. Install latest version of rainmeter (beta) as well as the JaxCore3 skin and ModularPlayers skin
  10. Using the JaxCore3 settings, navigate to the ModularPlayers settings and switch "media" to Spotify (which uses the spicetify webnowplaying.js extension)

✔️ Expected result

ModularPlayers skin should display the currently playing spotify song and song information.

❌ Actual result

Plugin remains unchanged. NOTE 1: When webnowplaying chrome or firefox extension is used instead, the ModularPlayers skin works fine and displays the information correctly (including the web version of spotify) NOTE 2: I have tried other Rainmeter skins that utilise spicetify and its webnowplaying.js extension and they don't work either. NOTE 3: Using the dev tools in spotify, under the "sources" tab, under the "extensions" drop-down menu, webnowplaying.js is listed.

📷 Screenshots

image image image

potatohub741 avatar Aug 19 '21 08:08 potatohub741

Hmm the plugin still works for me. Have you checked the Rainmter Log while debug mode is on? I'm running this version of spotify: 1.1.66.578.gc54d0f69-a (which I think is the latest)

Fosmos avatar Aug 19 '21 12:08 Fosmos

This is because the getProgress method has broken again. I've fixed it locally but there are also CSS mappings to update that Spicetify needs to work again.

itsmeow avatar Aug 20 '21 16:08 itsmeow

Hmm the plugin still works for me. Have you checked the Rainmter Log while debug mode is on? I'm running this version of spotify: 1.1.66.578.gc54d0f69-a (which I think is the latest)

Yeah I thought I might see something in the rainmeter logs, but there are no errors that I can see. image This is a log I just took of me opening spotify (spicetify), refreshing the ModularPlayers skin and pressing the play/pause button a couple times. I thought it might be a firewall issue, but I disabled my firewall and made exceptions for both spotify and rainmeter. I also thought there might be some server that spicetify or something has to communicate with that my ISP might be blocking, so I tried using mobile hotspot which didn't work either.

@itsmeow does the issue with the getProgress method mean that the skin fails to get all the song information? I'd understand if it at least had the song name, or the song cover, and just the progress meter was faulty, but literally nothing is displayed when spotify is playing a song. image

potatohub741 avatar Aug 23 '21 12:08 potatohub741

That's really odd because progress is working for me image

Try this skin: https://github.com/Fosmos/Simply. Right click it and head to it's settings menu and make sure you have Spotify (WebNowPlaying) selected

Fosmos avatar Aug 23 '21 12:08 Fosmos

@Fosmos I tried your skin, but with the webnowplaying mode selected it still doesn't work either : ( It is able to grab the song title and artist in the other spotify mode. In the webnowplaying mode the play/pause, skip forward/back dont work either (I assume they're coded through webnowplaying to communicate with webnowplaying in spicetify)

potatohub741 avatar Aug 24 '21 02:08 potatohub741

That's soooo weird. Everything (I mean everything) works perfectly for me. I can try your skin if you want. I'm literally stumped. One thing you can try is downloading the spiceitfy update's zip, extracting it and replacing everything in the spiceitfy-cli directory with everything in the expanded zip. Doubt it'll do anything, but 🤷🏻‍♂️ and then I guess while you're at it, double check you have webnowplaying.js properly set in the config file.

Fosmos avatar Aug 24 '21 12:08 Fosmos

I'm not 100% if this is the right link because the modular players skin was installed through another skin that manages skins called JaxCore. https://github.com/EnhancedJax/-JaxCore/releases/tag/v00030 This should be the link, but if not, then just look around the releases. You also have to install another thing called MagicMeter or something for modularplayers, but it should prompt you when you try to install modularplayers using JaxCore3.

Where could I find the spicetify update zip? And yeah I do have webnowplaying.js installed in spicetify. image I also just recently updated to spicetify v2.6.0 from the 2.5 meowpatch version which did nothing unfortunately : (

The funny thing is, it works perfectly fine when I use the webnowplaying extension in chrome or firefox. Even if I use the web version of spotify in those browsers. It's just the spotify client itself with spicetify that doesn't seem to link to webnowplaying in rainmeter.

potatohub741 avatar Aug 24 '21 12:08 potatohub741

https://github.com/khanhas/spicetify-cli/releases Here's where you get the latest

Fosmos avatar Aug 24 '21 13:08 Fosmos

Also I was able to get one of the Jax skins to work image With the album cover too

Fosmos avatar Aug 24 '21 13:08 Fosmos

Do the other skin themes not work?

potatohub741 avatar Aug 24 '21 13:08 potatohub741

Yeah they all work image

Fosmos avatar Aug 24 '21 13:08 Fosmos

Are you running this version of spicetify? image

potatohub741 avatar Aug 24 '21 13:08 potatohub741

Yea I am, but I copied pasted the stuff from the zip, so my guess is they forgot to update the versioning

Fosmos avatar Aug 24 '21 13:08 Fosmos

Do you think any of this might be an issue if spicetify's webnowplay.js is looking for where rainmeter is installed? image

potatohub741 avatar Aug 24 '21 13:08 potatohub741

We have the same paths except for the ones with 'X'. Kinda doubt that would cause an issue specifically with webnowplaying though

Fosmos avatar Aug 24 '21 13:08 Fosmos

I'm having the same issue as potatohub, and my visualizer is completely broken on both web player and desktop app.

uppercrust3 avatar Aug 24 '21 19:08 uppercrust3

I have tried reinstalling spicetify again. Didn't work. I have tried uninstalling and reinstalling an older version of spotify (1.1.61.583.gad060c66-a). Didn't work. I have tried moving my rainmeter main install onto my primary hard drive. Didn't work I have tried uninstalling and reinstalling the rainmeter webnowplaying plugin. Didn't work.

For some reason, the chrome and firefox webnowplaying plugins work absolutely fine with rainmeter. I've really run out of ideas on how I can debug this.

The only thing I can think of right now is that maybe the playing data webnowplaying.js collects through spicetify is saved to some local folder somewhere, and spicetify/spotify doesn't have permissions to write to that folder, so when Rainmeter's webnowplaying plugin goes to grab that data, there's nothing there to grab. I assume if this was the case, then the chrome and firefox versions of webnowplaying save their data to a different folder, and therefore wouldn't run into the same issue. Does this sound plausible?

potatohub741 avatar Aug 25 '21 06:08 potatohub741

image I looked at the spicetify devtools console and these errors were appearing. Could this have anything to do with spicetify not communicating with rainmeter?

potatohub741 avatar Aug 25 '21 07:08 potatohub741

Can you see where in the source code those problems are being hit?

Fosmos avatar Aug 25 '21 11:08 Fosmos

I'm not too experienced with java, html or css, but from browsing around the sources folders, I can't seem to find these Sourcemap files.

potatohub741 avatar Aug 26 '21 03:08 potatohub741