It is currently May 5th, 2024, 1:13 am

Spotify Plugin Released! Now with less bugs!

Plugins and Addons popular with the Community
JoshuaVL1988
Posts: 37
Joined: April 25th, 2015, 10:41 am

Re: Spotify Plugin Released! Now with less bugs!

Post by JoshuaVL1988 »

.raptor wrote:
You forgot to specify "Type=" in both mDuration, mAlbum and mArtist. For the track name, that would be a little different as we need mPlayer to stay the way it is. If we change mPlayer the pause and play buttons will stop working. My suggestion is to add:

Code: Select all

[mTrack]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=TrackName
Put it just between mArtist and mPlayer to keep things organized. Then we need to change the actual meter as well:

Code: Select all

[Track]
Meter=STRING
MeasureName=mPlayer
FontFace=Calibri
FontColor=180,180,180
X=40
Y=7
W=215
H=18
AntiAlias=1
FontSize=11
ClipString=1
StringEffect=Shadow
FontEffectColor=0,0,0,200
to

Code: Select all

[Track]
Meter=STRING
MeasureName=mTrack
FontFace=Calibri
FontColor=180,180,180
X=40
Y=7
W=215
H=18
AntiAlias=1
FontSize=11
ClipString=1
StringEffect=Shadow
FontEffectColor=0,0,0,200
Sweet! Thank you soooo much! It works perfectly now! =D
User avatar
.raptor
Posts: 220
Joined: April 3rd, 2013, 11:03 pm
Location: Norway

Re: Spotify Plugin Released! Now with less bugs!

Post by .raptor »

Glad it worked! :great:
fragstealern
Posts: 1
Joined: July 31st, 2015, 1:12 am

Re: Spotify Plugin Released! Now with less bugs!

Post by fragstealern »

Hi, is it possible to fix this and if how? :)

The Album image is getting huge and covers the rest of the buttons etc..

Image
User avatar
.raptor
Posts: 220
Joined: April 3rd, 2013, 11:03 pm
Location: Norway

Re: Spotify Plugin Released! Now with less bugs!

Post by .raptor »

fragstealern wrote:Hi, is it possible to fix this and if how? :)

The Album image is getting huge and covers the rest of the buttons etc..

Image
If i didn't misunderstand the documentation you probably didn't specify H and W, causing it to scale to the image size.
Miso99
Posts: 1
Joined: August 2nd, 2015, 5:52 pm

Re: Spotify Plugin Released! Now with less bugs!

Post by Miso99 »

Great plugin, everything works ! One question tho..
do you plan implementing some lyrics functionality ? Or does anybody know some lyrics plugin/skin that works with spotify ? SCaLPI does not work for me anymore..
JoshuaVL1988
Posts: 37
Joined: April 25th, 2015, 10:41 am

Re: Spotify Plugin Released! Now with less bugs!

Post by JoshuaVL1988 »

Hello, I found a mini spotify player skin on DA and figured 'd try to fix a issue it's having. Basically, it doesn't show the artist name or track name. Here's the ini for it. Maybe you can show me what edits need to be made?
[Rainmeter]
Update=1000

[Metadata]
Name=SpotifyMini
Author=nseckinoral
Information=Mini Spotify Desktop Player
License=
Version=1.0

[MeterBackground]
Meter=Image
ImageName=#@#bg.jpg

[MeasurePlayer]
Measure=Plugin
Plugin=NowPlaying
PlayerName=Spotify
PlayerType=TITLE
Substitute="":"Song Title"


[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying
; Secondary measures specify the name of the main measure on PlayerName.
PlayerName=Spotify
PlayerType=ARTIST
Substitute="":"Artist"

[MeterPrev]
Meter=Button
X=120
Y=6
ButtonImage=#@#prev1.png
LeftMouseUpAction=[!CommandMeasure "MeasurePlayer" "Previous"]

[MeterPlay]
Meter=Button
X=33r
Y=6
ButtonImage=#@#play1.png
LeftMouseUpAction=[!CommandMeasure "MeasurePlayer" "PlayPause"]

[MeterNext]
Meter=Button
X=32r
Y=6
ButtonImage=#@#next1.png
LeftMouseUpAction=[!CommandMeasure "MeasurePlayer" "Next"]

[MeterTitle]
Meter=String
MeasureName=MeasurePlayer
X=4
Y=9
W=110
H=20
FontFace=Trebuchet MS
FontColor=255,255,255,255
AntiAlias=1
ClipString=1
ClipStringW=90
Text="%1"



[MeterArtist]
Meter=String
MeasureName=MeasureArtist
X=4
Here's a screenshot for reference.
You do not have the required permissions to view the files attached to this post.
User avatar
.raptor
Posts: 220
Joined: April 3rd, 2013, 11:03 pm
Location: Norway

Re: Spotify Plugin Released! Now with less bugs!

Post by .raptor »

Miso99 wrote:Great plugin, everything works ! One question tho..
do you plan implementing some lyrics functionality ? Or does anybody know some lyrics plugin/skin that works with spotify ? SCaLPI does not work for me anymore..
Haven't looked into this at all, and got no plans to do so either. Unless i get a lot of free time i need to get off my hands :p

JoshuaVL1988 wrote:Hello, I found a mini spotify player skin on DA and figured 'd try to fix a issue it's having. Basically, it doesn't show the artist name or track name. Here's the ini for it. Maybe you can show me what edits need to be made?
[Rainmeter]
Update=1000

[Metadata]
Name=SpotifyMini
Author=nseckinoral
Information=Mini Spotify Desktop Player
License=
Version=1.0

[MeterBackground]
Meter=Image
ImageName=#@#bg.jpg

[MeasurePlayer]
Measure=Plugin
Plugin=NowPlaying
PlayerName=Spotify
PlayerType=TITLE
Substitute="":"Song Title"


[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying
; Secondary measures specify the name of the main measure on PlayerName.
PlayerName=Spotify
PlayerType=ARTIST
Substitute="":"Artist"

[MeterPrev]
Meter=Button
X=120
Y=6
ButtonImage=#@#prev1.png
LeftMouseUpAction=[!CommandMeasure "MeasurePlayer" "Previous"]

[MeterPlay]
Meter=Button
X=33r
Y=6
ButtonImage=#@#play1.png
LeftMouseUpAction=[!CommandMeasure "MeasurePlayer" "PlayPause"]

[MeterNext]
Meter=Button
X=32r
Y=6
ButtonImage=#@#next1.png
LeftMouseUpAction=[!CommandMeasure "MeasurePlayer" "Next"]

[MeterTitle]
Meter=String
MeasureName=MeasurePlayer
X=4
Y=9
W=110
H=20
FontFace=Trebuchet MS
FontColor=255,255,255,255
AntiAlias=1
ClipString=1
ClipStringW=90
Text="%1"



[MeterArtist]
Meter=String
MeasureName=MeasureArtist
X=4
Here's a screenshot for reference.
Check here.
JoshuaVL1988
Posts: 37
Joined: April 25th, 2015, 10:41 am

Re: Spotify Plugin Released! Now with less bugs!

Post by JoshuaVL1988 »

.raptor wrote: Haven't looked into this at all, and got no plans to do so either. Unless i get a lot of free time i need to get off my hands :p

Check here.
Ya i got it to work. had forgotten about that page til the moment i posted the help request, lol. went back to that page and got it done. Artist name apparently shows up as the length of the song but i'm guessing that's a spotify plugin thing. the last skin i modified to work with the spotify plugin had that ame difference, lol.
User avatar
.raptor
Posts: 220
Joined: April 3rd, 2013, 11:03 pm
Location: Norway

Re: Spotify Plugin Released! Now with less bugs!

Post by .raptor »

JoshuaVL1988 wrote: Ya i got it to work. had forgotten about that page til the moment i posted the help request, lol. went back to that page and got it done. Artist name apparently shows up as the length of the song but i'm guessing that's a spotify plugin thing. the last skin i modified to work with the spotify plugin had that ame difference, lol.
Works just fine here, do your code look more or less like this:

Code: Select all

[MeasureArtist]
Measure=Plugin
Plugin=SpotifyPlugin
Type=ArtistName
Substitute="":"Artist"
flip
Posts: 19
Joined: August 15th, 2015, 11:22 pm

Re: Spotify Plugin Released! Now with less bugs!

Post by flip »

Has this broken recently? I noticed for the past week or so that the progress bar, playing status, and title/artist are not returning properly. Progress is NaN, playing is always 0, and on rare occasion the track/artist shows up, but is doesn't change.

I am not really sure when this started, since I didn't bother to fix it for awhile, but I have tried updating my SpotifyPlugin.dll to no avail.

Any idea what is wrong?

I just really have no idea what has changed to break this in recent times. It worked fine before, but now it does not (with no changes made on my part).

Shortened code, if that is useful. Only shows parts related to SpotifyPlugin.dll and a small piece with general rainmeter settings.
[Rainmeter]
Update=40
DynamicWindowSize=1
AccurateText=1

[MeasureSpotify]
Measure=Plugin
Plugin=NowPlaying
PlayerName=Spotify

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

[MeasurePlaying]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=Playing
IfCondition=(MeasurePlaying = 1)
IfConditionMode=1
IfTrueAction=[!SetOption MeterPlayPause ImageName #PauseButton#][!SetOption MeterPlayPause SolidColor 0,0,0,1]
IfFalseAction=[!SetOption MeterPlayPause ImageName #PlayButton#][!SetOption MeterPlayPause SolidColor ""]

[MeasureTitle]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=TrackName

[MeasureArtist]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=ArtistName

[TitleArtistSwitch]
UpdateDivider=101
Measure=Calc
Formula=(Counter % 2) + 1

[MeterSong]
Meter=String
MeasureName=MeasureTitle
MeasureName2=MeasureArtist
AntiAlias=1
FontColor=#Color1#
FontFace=Segoe UI
FontSize=8
ClipString=2
StringAlign=Center
X=84
Y=90
W=118
H=15
DynamicVariables=1
Text=%[TitleArtistSwitch]

[MeterPlayPause]
Meter=Image
X=3
Y=77
SolidColor=0,0,0,1
ImageName=#PlayButton#
LeftMouseUpAction=[!CommandMeasure "MeasureSpotify" "PlayPause"]

[MeterProgress]
Meter=Bar
MeasureName=MeasureProgress
X=25
Y=85
W=118
H=5
BarImage=#ProgressBar#
SolidColor=#Color2#
BarOrientation=Horizontal