[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[abcde] Bug#87963: Patch to make more flexible various artists output behavior
Package: abcde
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: echo unsubscribe | mail abcde-request@whimsica.lly.org