It is currently April 26th, 2024, 3:19 am

Nowplaying plugin: cover check

Get help with creating, editing & fixing problems with skins
User avatar
Bananorpion
Posts: 40
Joined: April 16th, 2017, 8:35 pm

Nowplaying plugin: cover check

Post by Bananorpion »

Yop.

I wonder how I could check whether the cover art exists or not, with the NowPlaying plugin, so I can hide/show the frame around. I tried

Code: Select all

[MeasureCover]
...
IfMatch=
IfMatchAction=[!SetOption CoverFrame Hidden 1]
IfNotMatchAction=[!SetOption CoverFrame Hidden 0]
or

Code: Select all

IfCondition=(MeasureCover = -1)
(tried with 0 and 1 too), but it doesn't seem to work.
(I tried using the option MaskImageName, but the result is not what I expect.)
Last edited by Bananorpion on July 24th, 2017, 8:34 pm, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 16172
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Nowplaying plugin: cover check

Post by balala »

Replace the empty IfMatch= option with IfMatch=^$. In this expression ^ means the beginning of the string, while $ represents the end of it. Probably you've figured out that ^$ means empty string, because you have nothing between its beginning and end.
User avatar
Bananorpion
Posts: 40
Joined: April 16th, 2017, 8:35 pm

Re: Nowplaying plugin: cover check

Post by Bananorpion »

Damn, I forgot regular expressions were a thing.
It works, thanks.
User avatar
balala
Rainmeter Sage
Posts: 16172
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Nowplaying plugin: cover check

Post by balala »

Glad to help.