It is currently March 29th, 2024, 2:24 pm

Trying to get my Winamp Cover Art

General topics related to Rainmeter.
User avatar
Yelleke
Posts: 73
Joined: September 5th, 2009, 11:38 am
Location: Belgium

Trying to get my Winamp Cover Art

Post by Yelleke »

;----Playlist.m3u Content Example---
#EXTM3U
#EXTINF:252,A Tribe Called Quest - Can I Kick It?
\Users\Benjamin\Music\Various Artists\100 Hits Of The '90s\12 Can I Kick It .mp3

;----Stripped Player Stuff--------------
[WINAMP]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
Substitute=" - Winamp":""," [Paused]":""," [Stopped]":""

[DURATION]
Group=Player
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
WindowMessage=1024 1 105

;---Get The Matching Cover---------
[Get-Cover]
Group=Player
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url="file://#CURRENTPATH#\Playlist.m3u"
RegExp="(?siU)EXTINF:[DURATION],[WINAMP](\r)\\Users\\Benjamin\\Music\\(.*)\\.*.mp3"
DynamicVariables=1
UpdateRate=[DURATION]
StringIndex=2

;---Show The Matching Cover--------
[Show-Cover]
Group=Player
Meter=Image
ImageName=\Users\Benjamin\Music\[Get-Cover]\folder.jpg
X=10
Y=12
H=64
W=64
DynamicVariables=1

1) is it possible to use [Measures] in the Regexp ?
2) How can I grab anything between \Users\Benjamin\Music\ and the last backslash
So I only have the directory (and subdirectories) where the song is found
Various Artists\100 Hits Of The '90s

Is it possible to RegExp this ?
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: Trying to get my Winamp Cover Art

Post by Chewtoy »

1. Dynamic variables (using measures as the variable) and plugins is a no-no for now. Hopefully fixed some time soon, but don't get your hopes up.
2. \Music\\(.*).mp3" or \Music\\(.*)\\(.*).mp3"

As DynamicVariables won't work you should try looking in to WriteKeyValue: http://rainmeter.net/cms/Bangs_beta
I don't think, therefore I'm not.
User avatar
Yelleke
Posts: 73
Joined: September 5th, 2009, 11:38 am
Location: Belgium

Re: Trying to get my Winamp Cover Art

Post by Yelleke »

Chewtoy wrote:2. \Music\\(.*).mp3" or \Music\\(.*)\\(.*).mp3"
thx for the reply Chewtoy

the first example give me everything including the filename
the second example gives me only the first directory name

I think it should be something exotic like (.*//{-1,/})
who knows
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: Trying to get my Winamp Cover Art

Post by Chewtoy »

I'm not a RegExp pro. I pretty much suck at it.
But that might very well work. Try and see what works. :)
I don't think, therefore I'm not.
User avatar
JamesAC
Developer
Posts: 318
Joined: July 14th, 2009, 5:57 pm

Re: Trying to get my Winamp Cover Art

Post by JamesAC »

I think this should work:

Code: Select all

Music\\(.*)\\[^\\]*.mp3
I haven't tested in Rainmeter, but it works in RainRegExp.
+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
Quis custodiet ipsos custodes?