It is currently May 6th, 2024, 12:47 pm

Song Metadata Missing for WMP

Get help with creating, editing & fixing problems with skins
BHunt
Posts: 5
Joined: September 19th, 2011, 8:58 pm

Song Metadata Missing for WMP

Post by BHunt »

Hey guys, all of a sudden last week the Metadata on my WMP plugin quit working. Now it just shows "0" for Artist/Song/Album. I didn't update RainMeter but it is possible that Windows did an auto-update. I was using a theme's plugin (I think it was Illustro) but switched to the WMPPlayer.ini default player and am still having the same problem.

Any ideas?

thanks
b.
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Song Metadata Missing for WMP

Post by Kaelri »

Illustro doesn't have a media player skin, so it must have been from some other package. Could you post the code from the skin you're using? (Right-click and select "Edit skin" to view the source.)
BHunt
Posts: 5
Joined: September 19th, 2011, 8:58 pm

Re: Song Metadata Missing for WMP

Post by BHunt »

Sure thing. Here's the ini for the player/skin I'm using now:



;Metadata added by RainBrowser
;http://rainmeter.net/RainCMS/?q=Rainmeter101_AnatomyOfASkin

[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=

;End of added Metadata


[Variables]
@Include=#CurrentPath#Variables.inc
Colour=FFFFFF



[mProcessPID]
Measure=Plugin
Plugin=Plugins\Perfmon.dll
PerfMonObject="Process"
PerfMonCounter="ID Process"
PerfMonInstance=wmplayer
PerfMonDifference=0
UpdateDivider=3

[mWMP]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=WMPlayerApp

[mPlaying]
Measure=Calc
Formula=mProcessPID > 0 ? 1 : 0
IfEqualValue=0
IfEqualAction=!Execute [!RainmeterShowMeter MeterTitle][!RainmeterHideMeter Track][!RainmeterHideMeter Artist][!RainmeterHideMeter MeterTitle2][!RainmeterHideMeter MeterTitle3][!RainmeterHideMeter MeterTitle4][!RainmeterHideMeter NextWMP][!RainmeterHideMeter PrevWMP][!RainmeterHideMeter PlayWMP][!RainmeterHideMeter PauseWMP]
IfAboveValue=0
IfAboveAction=!Execute [!RainmeterHideMeter MeterTitle][!RainmeterShowMeter Track][!RainmeterShowMeter Artist][!RainmeterShowMeter MeterTitle2][!RainmeterShowMeter MeterTitle3][!RainmeterShowMeter MeterTitle4] [!RainmeterShowMeter NextWMP][!RainmeterShowMeter PrevWMP][!RainmeterShowMeter PlayWMP][!RainmeterShowMeter PauseWMP]
UpdateDivider=0,0001

[mTrack]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=Software\Microsoft\MediaPlayer\CurrentMetadata
RegValue=Title
Substitute=#Cap#

[mArtist]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=Software\Microsoft\MediaPlayer\CurrentMetadata
RegValue=Author

[mAlbum]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=Software\Microsoft\MediaPlayer\CurrentMetadata
RegValue=Album



[MeterTitle]
Meter=String
####################################
Text=
####################################
FontColor=#Colour#
FontSize=#Size#
FontFace=#Font#
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=000000
AntiAlias=1

[MeterTitle2]
Meter=String
MeasureName=mTrack
Text=%1
W=#Width#
H=#Height#
FontColor=#Colour#
FontSize=#Size#
FontFace=#Font#
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=000000
StringAlign=Left
AntiAlias=1
Hidden=0


[MeterTitle3]
Meter=String
MeasureName=mArtist
Text=%1
w=#Width#
H=#Height#
FontColor=#Colour#
FontSize=#Size#
FontFace=#Font#
StringStyle=ITALIC
StringEffect=SHADOW
FontEffectColor=000000
StringAlign=Left
AntiAlias=1
Hiden=0
y=30


[MeterTitle4]
Meter=String
MeasureName=mAlbum
Text=%1
w=#Width#
H=#Height#
FontColor=DBDBDB
FontSize=#Size#
FontFace=#Font#
StringStyle=BOLD
StringCase=Upper
StringEffect=SHADOW
FontEffectColor=000000
StringAlign=Left
AntiAlias=1
Hiden=0
y=15



[PrevWMP]
Meter=Image
ImageName=Prev.png
X=0
Y=50
FontColor=255,255,255,255
FontFace="Trebuchet MS"
FontSize=20
AntiAlias=1
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mWMP SendMessage 273 18810 0"]




[NextWMP]
Meter=Image
ImageName=Next.png
X=90
Y=50
AntiAlias=1
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mWMP SendMessage 273 18811 0"]

[PauseWMP]
Meter=Image
ImageName=Pause.png
X=30
Y=50
AntiAlias=1
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mWMP SendMessage 273 18808 0"]

[PlayWMP]
Meter=Image
ImageName=Play.png
X=60
Y=50
AntiAlias=1
LeftMouseUpAction=!Execute [!RainmeterPluginBang "mWMP SendMessage 273 18808 0"]
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Song Metadata Missing for WMP

Post by smurfier »

If you're not using the Rainmeter 2.1 you should install it now. This should work using the NowPlaying plugin by Poiru.

Code: Select all

[Variables]
@Include=#CurrentPath#Variables.inc
Colour=FFFFFF

[MeasurePlayer]
Measure=Plugin
Plugin=Plugins/NowPlaying.dll
PlayerName=Winamp
PlayerType=Status
IfEqualValue=0
IfEqualAction=!Execute [!RainmeterShowMeter MeterTitle][!RainmeterHideMeterGroup Info]
IfAboveValue=0
IfAboveAction=!Execute [!RainmeterHideMeter MeterTitle][!RainmeterShowMeterGroup Info]

[mTrack]
Measure=Plugin
Plugin=Plugins/NowPlaying.dll
PlayerName=[MeasurePlayer]
PlayerType=Title

[mArtist]
Measure=Plugin
Plugin=Plugins/NowPlaying.dll
PlayerName=[MeasurePlayer]
PlayerType=Artist

[mAlbum]
Measure=Plugin
Plugin=Plugins/NowPlaying.dll
PlayerName=[MeasurePlayer]
PlayerType=Album

[MeterTitle]
Meter=String
;####################################
Text=
;####################################
FontColor=#Colour#
FontSize=#Size#
FontFace=#Font#
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=000000
AntiAlias=1

[MeterTitle2]
Meter=String
MeasureName=mTrack
W=#Width#
H=#Height#
FontColor=#Colour#
FontSize=#Size#
FontFace=#Font#
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=000000
StringAlign=Left
AntiAlias=1
Group=Info

[MeterTitle3]
Meter=String
MeasureName=mArtist
MeterStyle=MeterTitle2
StringStyle=ITALIC
y=30

[MeterTitle4]
Meter=String
MeasureName=mAlbum
MeterStyle=MeterTitle2
FontColor=DBDBDB
StringStyle=BOLD
StringCase=Upper
y=15

[PrevWMP]
Meter=Image
ImageName=Prev.png
X=0
Y=50
FontColor=255,255,255,255
FontFace="Trebuchet MS"
FontSize=20
AntiAlias=1
LeftMouseUpAction=!CommandMeasure "MeasurePlayer" "Previous"
Group=Info

[NextWMP]
Meter=Image
ImageName=Next.png
X=90
Y=50
AntiAlias=1
LeftMouseUpAction=!CommandMeasure "MeasurePlayer" "Next"
Group=Info

[PauseWMP]
Meter=Image
ImageName=Pause.png
X=30
Y=50
AntiAlias=1
LeftMouseUpAction=!CommandMeasure "MeasurePlayer" "Pause"
Group=Info

[PlayWMP]
Meter=Image
ImageName=Play.png
X=60
Y=50
AntiAlias=1
LeftMouseUpAction=!CommandMeasure "MeasurePlayer" "Play"
Group=Info
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
BHunt
Posts: 5
Joined: September 19th, 2011, 8:58 pm

Re: Song Metadata Missing for WMP

Post by BHunt »

Updated to 2.1. When I use your code, you have it set to WinAmp, but I'm using WindowsMediaPlayer. Wahts the PlayerName variable for WMP?

Thanks!
BHunt
Posts: 5
Joined: September 19th, 2011, 8:58 pm

Re: Song Metadata Missing for WMP

Post by BHunt »

Nevermind. Found it! Works like charm.

Thanks guys!!!!!!!
b.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Song Metadata Missing for WMP

Post by smurfier »

Would you mind sharing in case someone else has this issue?
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
BHunt
Posts: 5
Joined: September 19th, 2011, 8:58 pm

Re: Song Metadata Missing for WMP

Post by BHunt »

Yes. I updated to 2.1 and then opened the skin editor for my player/plugin and replaced from [Variables] on down with your code, replacing

PlayerName=Winamp
with
PlayerName=WMP

Refreshed skin and it all worked.

Thanks again,
b.