.raptor wrote:Need some help testing this new build. The new commands are:
Code: Select all
[!CommandMeasure "SpotifyMeasure" "play"]
[!CommandMeasure "SpotifyMeasure" "pause"]
[!CommandMeasure "SpotifyMeasure" "next"]
[!CommandMeasure "SpotifyMeasure" "previous"]
[!CommandMeasure "SpotifyMeasure" "volume 100"] // value is in %, so between 0 and 100
[!CommandMeasure "SpotifyMeasure" "repeat context"] // value is either track, context or off. Context repeats current playlist/album
[!CommandMeasure "SpotifyMeasure" "shuffle true"] // value is true or false
[!CommandMeasure "SpotifyMeasure" "seek 10000"] // value is ms into song, values higher than song length skips to next track
EDIT: Just realize some basic info would probably be helpful. I'm using the new part of spotifys web api. This requires the user to log in and authorize the "app". Its still using the old local api for everything that isn't commands, as I haven't decided on which api to use for the song information. The current implementation has the advantage of being local, so it will work without internet, as long as it has a little bit once in a while to re-authenticate. The new api however exposes a lot more info, but all traffic is routed via spotifys servers.
Any chance you could commit these new builds to your github page? It would make for keeping track of these new features much easier and help with debugging. Also how do we authorize the new features?
Also if you are going to add seek support any chance you could add the SetPosition bang that NowPlaying and GPMDP use that way we dont have to make a special case for spotify?
Edit: on testing these commands every single one I tested said unknown command. The first time I ran it I got the authorization webpage, authorized it and then got a page that said Logged in?, but now I get unknown command and nothing happens. This is using plugin version 1.4.1.1
Edit2: Tried revoking it to see what was happening and it does not seem to want to reauthorize me, checked to see if you were storing anything in the rainmeter.data file but that does not seem to be the case. Noticed the log has the following error:
Code: Select all
SpotifyPlugin version 1.4.1.1
Culture: en-US
OSVersion: Microsoft Windows NT 10.0.15063.0
----
4110 - No user logged in
----
at SpotifyPlugin.SpotifyAPI.Gather()
Edit3: Got it to reauthorize again, you seem to be doing the authorization wait in a blocking thread as it locks up rainmeter while you are authorizing it.