dubwise
December 30, 2007, 4:42pm
1
Is there a way to write absolute playlists,
not relative to the work directory,
but without the drive letter?
My USB player may show up as any drive.
I'd like each playlist to work from anywhere on that drive.
My desired formatting looks like this, with no leading "." or drive letter.
\tunes\TWINPEAKS\Angelo Badalamenti - Twin Peaks Theme.mp3
\tunes\TWINPEAKS\Angelo Badalamenti - Laura Palmer's Theme.mp3
\tunes\TWINPEAKS\Angelo Badalamenti - Audrey's Dance.mp3
\tunes\TWINPEAKS\Angelo Badalamenti - The Nightingale.mp3
DetlevD
December 31, 2007, 8:43am
2
You may try something like this, adapt it to your needs:
$regexp(%_folderpath%,^\u:(.*)$,$1)
DD.20071231.1043.CET
Florian
December 31, 2007, 10:51am
3
Maybe you should add the missing bit of information, that this format string can be used within the Export function.
Kind regards,
Florian
dubwise
December 31, 2007, 2:28pm
4
Thank you , gentlemen. I'll give that a shot.
Florian
December 31, 2007, 2:33pm
5
You can try this one $filename(m3u)#EXTM3U
$loop(%track%)#EXTINF:%_length_seconds%,%artist% - %title%
$regexp(%_folderpath%,^\u\:(.*)$,$1)%_filename_ext%
$loopend()
chrisjj
February 18, 2008, 5:16pm
6
Intreresting... line line 3, what's the purpose of the \ before the : ?
DetlevD
February 18, 2008, 5:54pm
7
chrisjj, I think it is not forbidden to escape any literal character used in a regular expression, so I did escape the semi colon for sure too.
DD.20080218.1952.CET
chrisjj
February 18, 2008, 6:13pm
8
Aha - I just thought I might have missed a requirement. And though : -> undefined behaviour, I agree it seems safe.
BTW, I think most concise is: $regexp(%_folderpath%,^.:,)%_filename_ext%
EDIT: " though : -> undefined behaviour " is incorrect:
http://www.boost.org/doc/libs/1_55_0/libs/...erl_syntax.html
above which : is not listed
DetlevD
September 6, 2014, 4:34am
9
Since Mp3tag v2.47 [2010-11-19]: $cutLeft ( %_path% , 2 )
DD.20140906.0834.CEST
chrisjj
September 6, 2014, 10:36am
10
Note: on a UNC name, that gives an illegal path. At the pointer here:
Whereas the original does nothing.
One solution is $regexp(%_path%,'^\u:|^\\[^\\]+',) :