It is currently July 8th, 2024, 2:22 am

Spotify Plugin Released! Now with less bugs!

Plugins and Addons popular with the Community
User avatar
VasTex
Posts: 407
Joined: September 20th, 2012, 3:17 pm
Location: USA - Montana

Re: Spotify Plugin Released!

Post by VasTex »

Thanks for the quick fix, can't say right at the moment if the crashes really are gone or not, but I haven't had one yet. Fingers crossed.

As for the running executables; Here's a list of application/plugin combinations and their resulting .exes. *I made sure to end all Spotify related executables/skins in between these tests:

Spotify Plugin: NOT RUNNING
Spotify Player: NOT RUNNING
-No Spotify related .exes running.

Spotify Plugin: RUNNING
Spotify Player: NOT RUNNING
-One instance of SpotifyWebHelper.exe Running.
*Upon unloading your plugin the single instance of SpotifyWebHelper.exe remains open until manually ended.

Spotify Plugin: NOT RUNNING
Spotify Player: RUNNING
-One instance of Spotify.exe Running.
-Four instances of SpotifyHelper.exe Running.
-Zero instances of SpotifyWebHelper.exe Running.
*Upon exiting Spotify all above instances are exited, but one instance of SpotifyWebHelper.exe opens automatically for some reason.

Spotify Plugin: RUNNING
Spotify Player: RUNNING
-One instance of Spotify.exe Running.
-Four instances of SpotifyHelper.exe Running.
-One instance of SpotifyWebHelper.exe Running.
*Upon exiting both Spotify and your plugin a single instance of SpotifyWebHelper.exe remains open until manually ended.

Hopefully that helps.
01010100 01100101 01100011 01101000 01101110 01101111 01101100 01101111 01100111 01101001
01100011 01100001 01101100 00100000 01000010 01100001 01100100 01100001 01110011 01110011
User avatar
.raptor
Posts: 220
Joined: April 3rd, 2013, 11:03 pm
Location: Norway

Re: Spotify Plugin Released!

Post by .raptor »

That helps a lot, thank you :rosegift:

I'll look into the rest of the issues over the weekend. Got some planning to do about next patch...
Entry_Plug
Posts: 2
Joined: July 3rd, 2014, 7:59 am

Re: Spotify Plugin Released!

Post by Entry_Plug »

.raptor wrote: I will fix that for you after I'm done with the new version.

While I'm here:
What update rate do you guys use for your skins?
Hi.. thx for your help.

Since 2 days, I try to fix it.. I don't know nothing about coding and rainmeter ^^ So I try some modification then i refresh the skin, etc..

I always failed.. i think i'm really really a zero ^^
User avatar
exper1mental
Posts: 269
Joined: January 9th, 2013, 7:52 pm
Location: Clemson University

Re: Spotify Plugin Released!

Post by exper1mental »

.raptor wrote:New version up, should not crash anymore. (And the lag is still gone :great: )
Runs like a charm as far as I can tell (aside from the SpotifyHelper.exe/SpotifyWebHelper.exe issue pointed out in a post above) with one exception. When I wake my computer from Sleep mode and I have a skin loaded that uses the SpotifyPlugin, Rainmeter will crash.


EDIT: Another bug found, when a song is paused for a prolonged period the album art sometimes goes back to being blank. The workaround for now is to go to another song and then come back to the song, not a big deal unless you are OCD like me. ;3
Last edited by exper1mental on July 6th, 2014, 10:01 pm, edited 3 times in total.
Image
User avatar
exper1mental
Posts: 269
Joined: January 9th, 2013, 7:52 pm
Location: Clemson University

Re: Spotify Plugin Released!

Post by exper1mental »

.raptor wrote:About the position issue, i haven't really been updating the documentation in forever. While you all wait tho, here are all the types of measures the plugin should support(I can in no way guarantee that these will do what their names imply, or not crash your rainmeter, but feel free to try).

Code: Select all

enum MeasureType
        {
            Running,
            Playing,
            Shuffle,
            Repeat,
            Volume,
            Online,
            Progress,
            Position,
            PositionSeconds,
            Length,
            LengthSeconds,
            TrackName,
            TrackURI,
            TrackURL,
            ArtistName,
            ArtistURI,
            ArtistURL,
            AlbumName,
            AlbumURI,
            AlbumURL,
            AlbumArt60,
            AlbumArt85,
            AlbumArt120,
            AlbumArt300,
            AlbumArt640
        }
Note that album art is not handled by type, but rather by Type=AlbumArt and Res=60 (or any of the above).
Just tried Shuffle and Repeat.

Result:
SystemVersion.dll: Type=Shuffle not valid
SystemVersion.dll: Type=Repeat not valid


Here is a skin demonstrating the problem:
iTunes Mini 4 Spotify.rmskin


Side note: Are there any (undocumented) plugin bangs? i.e. A bang toggling shuffle or repeat?
You do not have the required permissions to view the files attached to this post.
Image
User avatar
.raptor
Posts: 220
Joined: April 3rd, 2013, 11:03 pm
Location: Norway

Re: Spotify Plugin Released!

Post by .raptor »

exper1mental wrote: Side note: Are there any (undocumented) plugin bangs? i.e. A bang toggling shuffle or repeat?
Not at the moment no. To be perfectly honest i have no idea how to make bangs :oops: . So far i have found no way to toggle shuffle/repeat programmaticly either, but I'm always looking.
User avatar
exper1mental
Posts: 269
Joined: January 9th, 2013, 7:52 pm
Location: Clemson University

Re: Spotify Plugin Released!

Post by exper1mental »

.raptor wrote:Not at the moment no. To be perfectly honest i have no idea how to make bangs :oops: . So far i have found no way to toggle shuffle/repeat programmaticly either, but I'm always looking.
Ok, thanks for checking :D


I noticed when using AlbumArt and setting Res=300, while the plugin will load the first song's album art fine it locks up Rainmeter when I go to the next song. Usually this leads to me opening task manager and killing Rainmeter. When I open Rainmeter afterward it locks up and doesn't load anything, the only way to fix this is to manually edit the Rainmeter.ini and deactivate the skin using SpotifyPlugin.dll.

What I found most interesting is that if I do not set Res the album art displays fine (since 300 is the default resolution as you stated in the documentation).

I'm going to investigate this further and see if maybe it is the AlbumArt that is causing the crash on computer waking from sleep.

EDIT: Nope, that's not what is causing it...
Image
User avatar
.raptor
Posts: 220
Joined: April 3rd, 2013, 11:03 pm
Location: Norway

Re: Spotify Plugin Released!

Post by .raptor »

exper1mental wrote: Ok, thanks for checking :D


I noticed when using AlbumArt and setting Res=300, while the plugin will load the first song's album art fine it locks up Rainmeter when I go to the next song. Usually this leads to me opening task manager and killing Rainmeter. When I open Rainmeter afterward it locks up and doesn't load anything, the only way to fix this is to manually edit the Rainmeter.ini and deactivate the skin using SpotifyPlugin.dll.

What I found most interesting is that if I do not set Res the album art displays fine (since 300 is the default resolution as you stated in the documentation).

I'm going to investigate this further and see if maybe it is the AlbumArt that is causing the crash on computer waking from sleep.

EDIT: Nope, that's not what is causing it...
I'm sorry about not being much help about the crashing. I wish i could say that its probably just a minor bug waiting to be fixed, but unfortunately its just my flawed implementation so far. I'm really grateful for you guys putting up with this release after release. This is my first half serious project, and I'm learning loads.

I don't have a major update for you guys this time, but at least a little something i snuck in between the rest of the development. Both shuffle and repeat should now give results (1 for true, 0 for false), and if you guys find other unimplemented measures, they will now show the correct plugin name in the rainmeter log. Track, artist and album names are now in UTF8 encoding aswell.
(There has also been some work on stability aswell, but as i don't know if this is a step for the better or for the worse, i will just attach it here.)
Last edited by .raptor on January 23rd, 2015, 8:13 pm, edited 1 time in total.
User avatar
rm_lion
Posts: 93
Joined: December 27th, 2013, 4:04 pm
Location: Switzerland

Re: Spotify Plugin Released!

Post by rm_lion »

Hello .raptor,

thank you very much for this cool Plugin.
But at the Moment it is driving me crazy.

On the first of July I downloaded the newest Version of your Plugin and edited the Soita Skin a Little bit and everything worked fine. Except that I couldn't change the volume on the Skin.

Now I downloaded your newest Version again and most things don't work anymore.
Unfortunately I didn't backup the last Version.
So do you maybe still have the Version from the 1st of July?
Or can you maybe tell me what I have to Change in the code to make it work again.

Code: Select all

[Rainmeter]
Author=poiru
AccurateText=1
Update=1000

[Metadata]
Name=Soita
Description=Displays track information from various media players.
Version=1.0.1
License=Creative Commons BY-NC-SA 3.0

[mPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=Spotify
; Edit PlayerName= above. A list of valid values is available
; from: http://rainmeter.net/cms/Plugins-NowPlaying_beta#playerlist
PlayerType=TITLE
Substitute="":"N\A"

[mArtist]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=ARTIST
Substitute="":"N\A"

[mAlbum]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=AlbumName

[mCover]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=AlbumArt
Res=85

[mPosition]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=Position

[mDuration]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=Length

[mProgress]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=Progress

;[mRating]
;Measure=Plugin
;Plugin=NowPlaying.dll
;PlayerName=[mPlayer]
;PlayerType=RATING

[mStateButton]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=Playing
Substitute="0":"#@#Play.png","1":"#@#Pause.png","2":"#@#Play.png"

[mVolume]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=Volume

[BackgroundGradient]
X=0
Y=0
Meter=Image
W=380
H=120
SolidColor=0,0,0,10
SolidColor2=100,0,100,50

[Background]
Meter=IMAGE
ImageName=#@#Background.png
ImageAlpha=80
X=0
Y=0

[Cover]
Meter=IMAGE
MeasureName=mCover
X=10
Y=10
W=100
H=100
SolidColor=FFFFFF10

;[Stars]
;Meter=BITMAP
;X=30
;Y=110
;MeasureName=mRating
;BitmapImage=#@#Rating.png
;BitmapFrames=6
;BitmapZeroFrame=1

;[SetRating1]
;Meter=IMAGE
;X=34
;Y=116
;W=13
;H=10
;SolidColor=00000001
;LeftMouseUpAction=[!CommandMeasure mPlayer SetRating 1"]

;[SetRating2]
;Meter=IMAGE
;X=13r
;Y=115
;W=13
;H=10
;SolidColor=00000001
;LeftMouseUpAction=[!CommandMeasure mPlayer SetRating 2"]

;[SetRating3]
;Meter=IMAGE
;X=13r
;Y=115
;W=13
;H=10
;SolidColor=00000001
;LeftMouseUpAction=[!CommandMeasure mPlayer SetRating 3"]

;[SetRating4]
;Meter=IMAGE
;X=13r
;Y=115
;W=13
;H=10
;SolidColor=00000001
;LeftMouseUpAction=[!CommandMeasure mPlayer SetRating 4"]

;[SetRating5]
;Meter=IMAGE
;X=13r
;Y=115
;W=13
;H=10
;SolidColor=00000001
;LeftMouseUpAction=[!CommandMeasure mPlayer SetRating 5"]

[Track]
Meter=STRING
MeasureName=mPlayer
X=120
Y=7
W=260
H=16
FontFace=Morpheus
FontColor=FFFFFFFF
AntiAlias=1
ClipString=1
Text="%1"

[Artist]
Meter=STRING
MeasureName=mArtist
X=120
Y=18r
W=260
H=16
FontFace=Morpheus
FontColor=FFFFFFFF
AntiAlias=1
ClipString=1
Text="%1"

[Album]
Meter=STRING
MeasureName=mAlbum
X=120
Y=18r
W=260
H=16
FontFace=Morpheus
FontColor=FFFFFFFF
AntiAlias=1
ClipString=1
Text="%1"

[Time]
Meter=STRING
MeasureName=mPosition
MeasureName2=mDuration
X=120
Y=20r
;W=260
;H=16
FontFace=DejaVu Sans Mono
FontColor=FFFFFFFF
AntiAlias=1
;ClipString=1
Text="%1 / %2"

[Progress]
Meter=STRING
MeasureName=mProgress
X=370
Y=0r
;W=50
;H=16
StringAlign=RIGHT
FontFace=DejaVu Sans Mono
FontColor=FFFFFFFF
AntiAlias=1
;ClipString=1
Text="%1%"

[ProgressBar]
Meter=BAR
MeasureName=mProgress
X=120
Y=20r
W=250
H=3
BarColor=E8D71CEE
SolidColor=FFFFFF80
BarOrientation=HORIZONTAL

[Previous]
Meter=BUTTON
ButtonImage=#@#Previous.png
X=120
Y=93
LeftMouseUpAction=[!CommandMeasure mPlayer "Previous"]

[Play]
Meter=BUTTON
ButtonImage=[mStateButton]
X=25r
Y=93
LeftMouseUpAction=[!CommandMeasure mPlayer "PlayPause"]
DynamicVariables=1

[Next]
Meter=BUTTON
ButtonImage=#@#Next.png
X=25r
Y=93
LeftMouseUpAction=[!CommandMeasure mPlayer "Next"]

[Stop]
Meter=BUTTON
ButtonImage=#@#Stop.png
X=25r
Y=93
LeftMouseUpAction=[!CommandMeasure mPlayer "Stop"]

[Volume]
Meter=IMAGE
ImageName=#@#Volume.png
X=35r
Y=94

[VolumeText]
Meter=STRING
MeasureName=mVolume
X=11r
Y=93
W=45
H=16
FontSize=10
FontFace=DejaVu Sans Mono
FontColor=FFFFFF99
AntiAlias=1
ClipString=1
Text="%1%"

[VolumeUp]
Meter=BUTTON
ButtonImage=#@#VolumeUp.png
X=33r
Y=92
LeftMouseUpAction=[!CommandMeasure mPlayer "SetVolume +25"]

[VolumeDown]
Meter=BUTTON
ButtonImage=#@#VolumeDown.png
X=0r
Y=100
LeftMouseUpAction=[!CommandMeasure mPlayer "SetVolume -25"]

[OpenPlayer]
Meter=BUTTON
ButtonImage=#@#Open.png
X=330
Y=93
ToolTipText="Open player"
LeftMouseUpAction=[!CommandMeasure mPlayer "OpenPlayer"]

[ClosePlayer]
Meter=BUTTON
ButtonImage=#@#Close.png
X=25r
Y=93
ToolTipText="Close player"
LeftMouseUpAction=[!CommandMeasure mPlayer "ClosePlayer"]
I think it has nothing to do with the code because I just tried the "NR_iTunes_MiniPlayer" and the result is the same.

My Problems:
The Cover doesn't Change. When I delete the Folder SpotifyPlugin it also doesn't get created.
AlbumName doesn't work.
Time and Progress don't work anymore.
Buttons (Prev,Next,Stop,Play/Pause) work but the Play Button allways Shows Play even if it is paused.

64 bit Spotify Plugin
Windows 8.1
Rainmeter 3.1 Final Release (r2290)
User avatar
.raptor
Posts: 220
Joined: April 3rd, 2013, 11:03 pm
Location: Norway

Re: Spotify Plugin Released!

Post by .raptor »

I'm really sorry to hear that. Unfortunately I don't keep the previous versions.
Have you tried both the plugin in the first post and the one above your post?
You do not have the required permissions to view the files attached to this post.