One of the annoying things in the current various artists handling is the
fact that ARTISTFILE is set to the artist of the song - which makes sense,
of course, but then that messes up my OUTPUTFILE setup, since I like to
keep albums together. So I made this simple little patch against abcde
(version 1.9.7-1) to add a new configuration option, VA_OUTPUTFILE, so that
there can be different OUTPUTFORMAT behavior for various artists
compilations. As an example, I have this in my .abcde.conf:
OUTPUTFORMAT='${ARTISTFILE}/${ALBUMFILE}/${TRACKNUM}.${TRACKFILE}.${OUTPUTTYPE}'
VA_OUTPUTFORMAT='various_artists/${ALBUMFILE}/${TRACKNUM}.${TRACKFILE}.${OUTPUTTYPE}'
so that single-artist compilations still go into that artist's directory,
but various-artist compilations all go into a single directory like they're
(IMO) supposed to.
--- /usr/bin/abcde Sun Jan 7 22:27:35 2001
+++ abcde Wed Feb 28 01:59:48 2001
@@ -249,7 +249,11 @@
ARTISTFILE=$(mungefilename "$TRACKARTIST")
TRACKFILE=$(mungefilename "$TRACKNAME")
# Supported variables for OUTPUTFORMAT are ALBUMFILE, ARTISTFILE, TRACKFILE, and TRACKNUM.
- OUTPUTFILE=$(eval echo $OUTPUTFORMAT)
+ if [ "$VARIOUSARTISTS" = "y" ]; then
+ OUTPUTFILE=$(eval echo $VA_OUTPUTFORMAT)
+ else
+ OUTPUTFILE=$(eval echo $OUTPUTFORMAT)
+ fi
# Check that the directory for OUTPUTFILE exists, if it doesn't, create it
OUTPUTFILEDIR=$(dirname "$OUTPUTDIR/$OUTPUTFILE")
if [ \! -d "$OUTPUTFILEDIR" ]; then
@@ -769,6 +773,7 @@
OUTPUTTYPE=ogg
ENCODERSYNTAX=default
OUTPUTFORMAT='${ARTISTFILE}/${TRACKFILE}.$OUTPUTTYPE'
+VA_OUTPUTFORMAT=${OUTPUTFORMAT}
PLAYLISTFORMAT='${ARTISTFILE}_-_${ALBUMFILE}.m3u'
PLAYLISTDATAPREFIX=''
ID3COMMENT=''
--
Magenta H. Nezumi
http://trikuare.cx - home of the porcupine
mp3.com/fluffyporcupine - now with extra chunkiness!
--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Hello, just to let people know what's going on... I do plan to throw this
patch into 1.9.8, which I was planning on releasing tonight.
That plan pretty much flew out the window at 10:55am this morning,
when the Seattle area was hit by a 30-second 6.8 earthquake.
It's 9pm now, I just got home from work (day job = network engineer).
After six hours Puget Sound Energy was able to get power back to our
building and then I had to get 60-some servers back up and running.
Tomorrow's probably gonna be just as fun. I get to restore some SQL
databases from tape because a really old server (which I found out today
wasn't running hardware RAID) had a drive die.
I'll do a release once things settle down and I have some spare time
(probably this weekend), but first I think I'll check my hard disks at
home and make sure I still have machines I can release with.
--
Robert Woodcock - r...@debian.org
"* We used to try various strange things. Let's not."
-- seen in linux/fs/buffer.c
Yeek, I didn't know you were in Seattle. Hope you were't too shaken up byu
the experience...
(FWIW, after submitting the patch I discovered that I forgot to make an
appropriate change for the playlist-creation stuff, which I completely
overlooked since I never use that. The modification is straightforward
though.)
> It's 9pm now, I just got home from work (day job = network engineer).
> After six hours Puget Sound Energy was able to get power back to our
> building and then I had to get 60-some servers back up and running.
>
> Tomorrow's probably gonna be just as fun. I get to restore some SQL
> databases from tape because a really old server (which I found out today
> wasn't running hardware RAID) had a drive die.
Yeek, that's definitely no fun. My deepest condolences. Guess those
things really can't take 20g of force...
> I'll do a release once things settle down and I have some spare time
> (probably this weekend), but first I think I'll check my hard disks at
> home and make sure I still have machines I can release with.
Take your time. It's not exactly urgent. :)
Thanks for the heads up, in any case. Hopefully Microsoft was hit good and
hard by the earthquake, at the very least... Maybe the government won't
have to break them up now, since nature just did it for them. ;)