It is currently March 29th, 2024, 6:12 am

fill-player.ini

Get help with creating, editing & fixing problems with skins
NicoArtic
Posts: 1
Joined: March 30th, 2018, 8:35 pm

fill-player.ini

Post by NicoArtic »

Hi!
i don't speak very good English, so sorry if I make mistakes :D


I don't see the cover of albums of Spotify... why?? :confused:

Thanks :welcome:

Code: Select all

[Rainmeter]
Update=100

[Variables]
@include1=#@#limvar.ini
; main string size
size=200
; name of media player
Player=Spotify

;---Styles---
@include2=#@#styles.ini

;---Measures---

[mPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=STATUS
DisableLeadingZero=0
[mTitle]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=TITLE
[mArtist]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=ARTIST
[mAlbum]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=ALBUM
[mCover]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=COVER
[mProgress]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=PROGRESS
MinValue=0
MaxValue=100
[mState]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=STATE
Substitute="0":"play","1":"pause","2":"play"

;---Meters---


[CoverBorder]
Meter=Image
X=(#size#*0.01)
Y=(#size#*0.01)
W=#size#
H=#size#
SolidColor=#shadow#
[CoverBG]
Meter=Image
MeasureName=mCover
X=(-#size#*0.01)r
Y=(-#size#*0.01)r
W=#size#
H=#size#
Greyscale=1
ImageTint=#bgcolor#
ImageAlpha=255
MouseOverAction=[!SetOptionGroup Controls ImageAlpha 255][!Redraw]
MouseLeaveAction=[!SetOptionGroup Controls ImageAlpha 64][!Redraw]
LeftMouseUpAction=[!CommandMeasure "mPlayer" "OpenPlayer"]
[CoverFill]
Meter=Bar
MeasureName=mProgress
X=0r
Y=0r
W=#size#
H=#size#
BarColor=#color1#,128

[PlayPause]
Group=Controls
Meter=Image
X=(#size#*0.375)
Y=(#size#*0.675)
W=(#size#*0.25)
H=(#size#*0.25)
ImageName=#@#[mState].png
ImageTint=#color2#
ImageAlpha=64
DynamicVariables=1
LeftMouseUpAction=!CommandMeasure "mPlayer" "PlayPause"
[Previous]
Group=Controls
Meter=Image
X=(-#size#*0.25)r
Y=(#size#*0.025)r
W=(#size#*0.2)
H=(#size#*0.2)
ImageName=#@#rew.png
ImageTint=#color2#
ImageAlpha=64
LeftMouseUpAction=!CommandMeasure "mPlayer" "Previous"
RightMouseUpAction=!CommandMeasure "mPlayer" "SetPosition -5"
[Next]
Group=Controls
Meter=Image
X=(#size#*0.55)r
Y=0r
W=(#size#*0.2)
H=(#size#*0.2)
ImageName=#@#ff.png
ImageTint=#color2#
ImageAlpha=64
LeftMouseUpAction=!CommandMeasure "mPlayer" "Next"
RightMouseUpAction=!CommandMeasure "mPlayer" "SetPosition +5"

[Title]
MeasureName=mTitle
Meter=String
MeterStyle=sText
X=0
Y=(1.15*#size#)
W=#size#
H=(#size#*0.15)
ClipString=1
FontSize=(0.07*#size#)
StringStyle=BOLD
FontColor=#color0#

[Artist]
MeasureName=mArtist
Meter=String
MeterStyle=sText
X=0r
Y=(0.08*#size#)r
W=#size#
H=(#size#*0.15)
ClipString=1
FontSize=(0.06*#size#)
StringStyle=BOLD
FontColor=#color0#

[Album]
MeasureName=mAlbum
Meter=String
MeterStyle=sText
X=0r
Y=(0.07*#size#)r
W=#size#
H=(#size#*0.1)
ClipString=1
FontSize=(0.05*#size#)
StringStyle=BOLDITALIC
FontColor=#color0#
Last edited by Brian on March 30th, 2018, 9:41 pm, edited 1 time in total.
Reason: Please use [code] tags.
User avatar
CyberTheWorm
Posts: 860
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: fill-player.ini

Post by CyberTheWorm »

Try using this but you need the Spotify plugin https://github.com/RobertFrydenlund/SpotifyPlugin

Code: Select all

[MeasureCover]
Measure=Plugin
Plugin=SpotifyPlugin.dll
Type=AlbumArt
Res=120
DefaultPath=#@#Images\Default.png
CoverPath=#@#Images\Cover.png
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: fill-player.ini

Post by balala »

NicoArtic wrote:I don't see the cover of albums of Spotify... why?? :confused:
Although I'm not using nor Spotify and thus nor the SpotifyPlugin, I know a few general things. First your code uses the NowPlaying plugin (newly NowPlaying measure(s)). But this plugin (measure) just partially supports Spotify and it returns only the artist and the title, but not the cover. For a such task you should have to use the Spotify plugin, which was specially written to work with the Spotify app. Do you have it installed?
If you have it, as CyberTheWorm said, you have to rewrite all measures which now use the NowPlaying plugin, to use the SpotifyPlugin. For this replace all occurrences of the Plugin=NowPlaying.dll option with Plugin=SpotifyPlugin. Beside this, probably you also will have to rewrite the PlayerType option names with Type, along with rewriting (at least a few of) the values of these options (eg the PlayerType=ALBUM option of the [mAlbum] measure should have to become Type=AlbumArt - according to CyberTheWorm's reply above). I think you have to study a bit the following thread, where the usage of the SpotifyPlugin is described: https://forum.rainmeter.net/viewtopic.php?f=18&t=17077.