;----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 ?
It is currently March 29th, 2024, 2:24 pm
Trying to get my Winamp Cover Art
-
- Posts: 73
- Joined: September 5th, 2009, 11:38 am
- Location: Belgium
-
- Moderator
- Posts: 995
- Joined: June 10th, 2009, 12:44 pm
- Location: Sweden
Re: Trying to get my Winamp Cover Art
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
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.
-
- Posts: 73
- Joined: September 5th, 2009, 11:38 am
- Location: Belgium
Re: Trying to get my Winamp Cover Art
thx for the reply ChewtoyChewtoy wrote:2. \Music\\(.*).mp3" or \Music\\(.*)\\(.*).mp3"
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
-
- Moderator
- Posts: 995
- Joined: June 10th, 2009, 12:44 pm
- Location: Sweden
Re: Trying to get my Winamp Cover Art
I'm not a RegExp pro. I pretty much suck at it.
But that might very well work. Try and see what works. :)
But that might very well work. Try and see what works. :)
I don't think, therefore I'm not.
-
- Developer
- Posts: 318
- Joined: July 14th, 2009, 5:57 pm
Re: Trying to get my Winamp Cover Art
I think this should work:
I haven't tested in Rainmeter, but it works in RainRegExp.
Code: Select all
Music\\(.*)\\[^\\]*.mp3
+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
Quis custodiet ipsos custodes?