[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

abcde: Adding another CDDB format, patch included!



Package: abcde
Version: 1.9.6-1
Severity: wishlist

Hi,

abcde should support the format "Artist: Title" that is used
for some multi-artist CDs in CDDB.  A patch for this
behaviour is appended to this report, it works well for me.

Cheers,
-- 
W. Borgert <debacle@debian.org>

--- abcde-1.9.6	Wed Nov 29 00:08:58 2000
+++ abcde-1.9.6-patched	Wed Nov 29 00:14:16 2000
@@ -135,6 +135,7 @@
 #  forward-dash: Artist - Track
 #  reverse:      Track / Artist
 #  reverse-dash: Track - Artist
+#  colon:        Artist: Track
 #
 # variables used:
 # VARIOUSARTISTS, VARIOUSARTISTSTYLE, TRACKNAME, TRACKARTIST
@@ -163,6 +164,11 @@
 			TRACKARTIST="$(echo $DTITLEARTIST | cut -f2 -d~)"
 			TRACKNAME="$(echo $DTITLEARTIST | cut -f1 -d~)"
 			;;
+		colon)
+			DTITLEARTIST="$(echo $TRACKNAME | sed 's-: -~-g')"
+			TRACKARTIST="$(echo $DTITLEARTIST | cut -f1 -d~)"
+			TRACKNAME="$(echo $DTITLEARTIST | cut -f2 -d~)"
+			;;
 		esac
 	else
 		TRACKARTIST=$DARTIST
@@ -636,12 +642,13 @@
 		echo "2) Artist - Title"
 		echo "3) Title / Artist"
 		echo "4) Title - Artist"
-		echo -n "Which style of multiple artist entries is it? [1-4]: "
+		echo "5) Artist: Title"
+		echo -n "Which style of multiple artist entries is it? [1-5]: "
 		read VARIOUSARTISTSTYLE
 		VARIOUSARTISTSTYLE=$(echo $VARIOUSARTISTSTYLE | xargs printf %d)
-		while [ $VARIOUSARTISTSTYLE -lt 1 ] || [ $VARIOUSARTISTSTYLE -gt 4 ]; do
-			echo "Invalid selection. Please choose a number between 1 and 4."
-			echo -n "Selection [1-4]: "
+		while [ $VARIOUSARTISTSTYLE -lt 1 ] || [ $VARIOUSARTISTSTYLE -gt 5 ]; do
+			echo "Invalid selection. Please choose a number between 1 and 5."
+			echo -n "Selection [1-5]: "
 			read VARIOUSARTISTSTYLE
 			VARIOUSARTISTSTYLE=$(echo $VARIOUSARTISTSTYLE | xargs printf %d)
 		done
@@ -659,6 +666,9 @@
 		4) # Title - Artist
 			VARIOUSARTISTSTYLE=reverse-dash
 			;;
+		5) # Artist: Title
+			VARIOUSARTISTSTYLE=colon
+			;;
 		esac
 	fi
 	
@@ -1013,4 +1023,4 @@
 	# Wipe all the evidence
 	rm -rf "$ABCDETEMPDIR"
 fi


---------------------------------------
Received: (at 78292-close) by bugs.debian.org; 8 Jan 2001 19:54:51 +0000