It is currently April 20th, 2024, 2:48 pm

Spotify Plugin Released! Now with less bugs!

Plugins and Addons popular with the Community
ilfor
Posts: 1
Joined: August 20th, 2014, 10:50 am

Re: Spotify Plugin Released!

Post by ilfor »

Hey there, Iam new to rainmeter and to this forum, so iam not sure if it matters but the plugin keept crashing for me too, after making a slight change to my ini thou it works,

I simply added "PlayerName=[MeasurePlayer]" in all my measures, not sure it helps or not :)
User avatar
.raptor
Posts: 220
Joined: April 3rd, 2013, 11:03 pm
Location: Norway

Re: Spotify Plugin Released!

Post by .raptor »

I'm back!

There seems to be a month or so with less work coming up, so i decided to continue development here! Have attached a new version below, would love if you guys could try it.
You do not have the required permissions to view the files attached to this post.
User avatar
exper1mental
Posts: 269
Joined: January 9th, 2013, 7:52 pm
Location: Clemson University

Re: Spotify Plugin Released!

Post by exper1mental »

.raptor wrote:I'm back!

There seems to be a month or so with less work coming up, so i decided to continue development here! Have attached a new version below, would love if you guys could try it.
I just installed the new plugin and loaded a skin that uses it and there is no crash now! :thumbup: So far so good, I'll post an update once it's been running for awhile.
Image
User avatar
.raptor
Posts: 220
Joined: April 3rd, 2013, 11:03 pm
Location: Norway

Re: Spotify Plugin Released!

Post by .raptor »

exper1mental wrote: I just installed the new plugin and loaded a skin that uses it and there is no crash now! :thumbup: So far so good, I'll post an update once it's been running for awhile.
spoiler alert: it will stop displaying info after a few hours

At least i can get into that now, as i think the crashing have been solved (to some degree).
User avatar
exper1mental
Posts: 269
Joined: January 9th, 2013, 7:52 pm
Location: Clemson University

Re: Spotify Plugin Released!

Post by exper1mental »

.raptor wrote:spoiler alert: it will stop displaying info after a few hours
Wait what? Like after a couple hours u have to reboot rainmeter to keep using it? :???:

Been running it for a little over an hour now without problem. Also, the crash on wake issue is gone. :)
Image
User avatar
.raptor
Posts: 220
Joined: April 3rd, 2013, 11:03 pm
Location: Norway

Re: Spotify Plugin Released!

Post by .raptor »

exper1mental wrote: Wait what? Like after a couple hours u have to reboot rainmeter to keep using it? :???:

Been running it for a little over an hour now without problem. Also, the crash on wake issue is gone. :)
Well, it stood overnight here, so i don't know how much of an issue it will really be, but i find it annoying anyhow. And no, disabling and enabling the skin seemed to fix it (refresh did not).
User avatar
exper1mental
Posts: 269
Joined: January 9th, 2013, 7:52 pm
Location: Clemson University

Re: Spotify Plugin Released!

Post by exper1mental »

.raptor wrote:Well, it stood overnight here, so i don't know how much of an issue it will really be, but i find it annoying anyhow. And no, disabling and enabling the skin seemed to fix it (refresh did not).
After running it all day and putting the computer to sleep for the night, Rainmeter did crash on wake this morning. After reloading Rainmeter I put the computer to sleep and woke it up again, no crash that time... Aside from that it's been running great.

EDIT:
The plugin doesn't seem to handle 'local' songs, it doesn't display info or art from them now and causes Rainmeter to become really sluggish until the song is changed.

Here's my Spotify plugin debug log:

6:48:07-08 is with a regular Spotify song. 6:49:42 and beyond is with a local song (not to be confused with an offline Spotify song).
6:48:07 AM Friday, September 19, 2014
OAuth token retrieved.
-------------------------------
6:48:07 AM Friday, September 19, 2014
Starting API...
-------------------------------
6:48:08 AM Friday, September 19, 2014
Deserialization started...
-------------------------------
6:48:08 AM Friday, September 19, 2014
Deserialization completed without error

=========================================
===Section Removed to Reduce File Size===
=========================================

6:49:42 AM Friday, September 19, 2014
Deserialization started...
-------------------------------
6:49:42 AM Friday, September 19, 2014
Deserialization failed: startIndex cannot be larger than length of string.
Parameter name: startIndex at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at Raptor.JsonDeserializer.Deserialize(String data)
at SpotifyPlugin.InfoGatherer.GetInfo(Int32 updateRate, Int32 id)
-------------------------------
6:49:42 AM Friday, September 19, 2014
Checking artwork
-------------------------------
6:49:42 AM Friday, September 19, 2014
Song change detected
-------------------------------
6:49:42 AM Friday, September 19, 2014
Switching to default image
-------------------------------
6:49:42 AM Friday, September 19, 2014
Downloading embedd page
-------------------------------
6:49:42 AM Friday, September 19, 2014
Deserialization started...
-------------------------------
6:49:42 AM Friday, September 19, 2014
Deserialization failed: startIndex cannot be larger than length of string.
Parameter name: startIndex at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at Raptor.JsonDeserializer.Deserialize(String data)
at SpotifyPlugin.InfoGatherer.GetInfo(Int32 updateRate, Int32 id)
-------------------------------
6:49:43 AM Friday, September 19, 2014
Downloading embedd page
-------------------------------
6:49:43 AM Friday, September 19, 2014
Deserialization started...
-------------------------------
6:49:43 AM Friday, September 19, 2014
Deserialization failed: startIndex cannot be larger than length of string.
Parameter name: startIndex at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at Raptor.JsonDeserializer.Deserialize(String data)
at SpotifyPlugin.InfoGatherer.GetInfo(Int32 updateRate, Int32 id)
-------------------------------
6:49:43 AM Friday, September 19, 2014
Can't find Album Art
-------------------------------
6:49:43 AM Friday, September 19, 2014
Checking artwork
-------------------------------
6:49:43 AM Friday, September 19, 2014
Song change detected
-------------------------------
6:49:43 AM Friday, September 19, 2014
Switching to default image
-------------------------------
6:49:43 AM Friday, September 19, 2014
Downloading embedd page

=========================================
===Section Removed to Reduce File Size===
=========================================


6:50:02 AM Friday, September 19, 2014
OAuth token retrieved.
-------------------------------
6:50:02 AM Friday, September 19, 2014
Starting API...
-------------------------------
6:50:02 AM Friday, September 19, 2014
Can't find Album Art
-------------------------------
6:50:02 AM Friday, September 19, 2014
Deserialization started...
-------------------------------
6:50:02 AM Friday, September 19, 2014
Deserialization failed: startIndex cannot be larger than length of string.
Parameter name: startIndex at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at Raptor.JsonDeserializer.Deserialize(String data)
at SpotifyPlugin.InfoGatherer.GetInfo(Int32 updateRate, Int32 id)
-------------------------------
6:50:02 AM Friday, September 19, 2014
Checking artwork
-------------------------------
6:50:02 AM Friday, September 19, 2014
Song change detected
-------------------------------
6:50:02 AM Friday, September 19, 2014
Switching to default image
-------------------------------
6:50:02 AM Friday, September 19, 2014
Downloading embedd page
-------------------------------
6:50:02 AM Friday, September 19, 2014
Restarting API...
-------------------------------
6:50:02 AM Friday, September 19, 2014
Downloading embedd page
-------------------------------
6:50:02 AM Friday, September 19, 2014
OAuth token retrieved.
-------------------------------
6:50:02 AM Friday, September 19, 2014
Starting API...
-------------------------------
6:50:02 AM Friday, September 19, 2014
Deserialization started...
-------------------------------
6:50:02 AM Friday, September 19, 2014
Deserialization failed: startIndex cannot be larger than length of string.
Parameter name: startIndex at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at Raptor.JsonDeserializer.Deserialize(String data)
at SpotifyPlugin.InfoGatherer.GetInfo(Int32 updateRate, Int32 id)
-------------------------------
6:50:02 AM Friday, September 19, 2014
Can't find Album Art
-------------------------------
6:50:02 AM Friday, September 19, 2014
Checking artwork
-------------------------------
6:50:02 AM Friday, September 19, 2014
Song change detected
-------------------------------
6:50:02 AM Friday, September 19, 2014
Switching to default image
-------------------------------
6:50:02 AM Friday, September 19, 2014
Downloading embedd page
Image
User avatar
.raptor
Posts: 220
Joined: April 3rd, 2013, 11:03 pm
Location: Norway

Re: Spotify Plugin Released!

Post by .raptor »

I was pretty sure this was working last time the plugin did what it should...

Now it seems like Spotify doesn't broadcast its data at all when playing local songs. I could always stop the crashing and such, but there would be no progress or other info when playing local songs :/
User avatar
exper1mental
Posts: 269
Joined: January 9th, 2013, 7:52 pm
Location: Clemson University

Re: Spotify Plugin Released!

Post by exper1mental »

.raptor wrote:I was pretty sure this was working last time the plugin did what it should...

Now it seems like Spotify doesn't broadcast its data at all when playing local songs. I could always stop the crashing and such, but there would be no progress or other info when playing local songs :/
Perhaps it's a new bug with the Spotify player?

To me the biggest priority should be getting the plugin consistently running smoothly without lag (like from local songs) or crashes, so pp like me who make skins can safely release ones using this plugin w/o needing to warn pp of potential crashes.
Image
User avatar
redsaph
Posts: 30
Joined: October 24th, 2013, 8:15 am

Re: Spotify Plugin Released!

Post by redsaph »

Hi! I would like to ask if I can include your plugin to my skin? It's really awesome :D
Rainmeter-er since 2013 :welcome: | My DeviantART