I've been working on a Winamp skin and I'm attempting to load album art from my hard drive. I am using some borrowed code that involves using the WebParser.dll plugin, but that is not my problem.
I have two measures:
Code: Select all
[mAlbum]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mRSS]
StringIndex=4
substitute="?":"unknown" , " ":""
[mArtist]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[mRSS]
StringIndex=1
substitute="?":"unknown"," ":""
[mArtist} similarly returns the Artist of the song
I am running Windows 7 on my computer and so the path to my music files is:
C:\Users\Brent\Music\"ARTIST NAME"\"ALBUM NAME"\"SONG"
I have a local copy of the album art stored to "cover.png" in each album folder
I have a variable declared that is
pathname="C:\Users\Brent\Music\"
I coded up a meter for the purpose of debugging that looks like:
Code: Select all
[AlbumArtPath]
MeasureName=mArtist
MeasureName2=mAlbum
Meter=STRING
Text=#pathname#%1\%2\cover.png
X=200
Y=0
C:\Users\Brent\Music\3 Doors Down\Seventeen Days\cover.png
which is exactly what I want it to do.
The trouble is that when I apply this method of creating a path name to draw an image, nothing happens...
Code: Select all
[AlbumArtImage]
Meter=IMAGE
MeasureName=mArtist
MeasureName2=mAlbum
ImageName=#pathname#%1\%2\cover.png
X=200
Y=20
W=100
H=100
I hope this makes sense.