keifufu / WebNowPlaying-Rainmeter

Rainmeter Adapter for WebNowPlaying
MIT License
100 stars 4 forks source link

Position multiplying after skin reload #5

Closed KrazyManJ closed 1 year ago

KrazyManJ commented 1 year ago

So i am currently working on widget to take control over web music player (mainly spotify) with your plugin and after each reload it multiply position parameter e.g. I reload it 5 times and instead of adding one second in position, it adds 5 seconds, 10 times reload adds 10 seconds each seconds and so on.

You can check out code of widget here.

Also i am using the newest version of Rainmeter (4.5.17.3700) (64-bit) and the newest version of this plugin (I've downloaded it yesterday).

keifufu commented 1 year ago

That sounds like it might only be possible if you use the spotify desktop player. Are you sure you're using the web version of spotify and don't have the desktop player open or anything? You can check which player it's grabbing info from with PlayerType=Player, where Spotify is the website and "Windows Media Session" is Spotify Desktop

KrazyManJ commented 1 year ago

No, i am sure that i am using spotify version installed by executable and not by windows store, also i've done configuration of spotify to work with this extension via this tutorial by author of monstercat visualizer.

keifufu commented 1 year ago

You had mentioned "web music player (mainly spotify)", so I thought you'd be using the website. It doesn't matter if you have the executable or microsoft store version installed. Please uninstall spicetify as It's no longer needed with WebNowPlaying 2.0.0 and newer and it could be the cause of the issue.

KrazyManJ commented 1 year ago

So now i can use default spotify app without spicetify and all my functionality in widget posted above should be fully compatible to gather all info by your plugin? I am asking just to be sure because that spicetify configuration took me long time to do.

keifufu commented 1 year ago

As long as you're on windows 10 or 11, yes.

KrazyManJ commented 1 year ago

After proper uninstallation of spotify + spicetify and installing it back without spicetify it still does the same problem, still after skin reload it multiplies progress based on count of reload.

keifufu commented 1 year ago

Do you have any other skins loaded? Do you reload all skins or just the music skin?

KrazyManJ commented 1 year ago

I am just reloading Music.ini skin and it is only skin i have currently on my screen. I am refreshing it via button with label "Refresh" that i can press only when i select specific skin so i assume it refreshes only that selected skin.

keifufu commented 1 year ago

Please give this version of the plugin a go, replace WebNowPlaying.dll in %AppData%\Rainmeter\Plugins with the .dll in the zip: WebNowPlaying.zip

KrazyManJ commented 1 year ago

Problem solved! I guess you've modified locally your plugin and send me copy to test it. After few tries (even hard-click spamming just to test it) it does not multiply progress anymore 😁 Thank you for your quick response and solving this issue, love this plugin cuz it turns dream of making apple-like widgets come true! ❤️ Keep it up!

keifufu commented 1 year ago

Glad it worked! I actually made this to fix another users problem on the rainmeter forums. It was already committed in 35c1e22cd822450f4d6a792db56c5d2447e50fa3 but I have yet to make a release for it.

keifufu commented 1 year ago

Just published v2.0.4 if you want the version bump