shithub: plan9front

Download patch

ref: 08bcc4bcecd6514756c4bde5b5ba6942aff9a98d
parent: 185fe31de404b67441248d91e6321645278ba92a
author: Jacob Moody <moody@posixcafe.org>
date: Thu Aug 5 11:54:29 EDT 2021

aux/cddb: include album name and correct track number key

--- a/sys/src/cmd/aux/cddb.c	Thu Aug  5 09:01:35 2021
+++ b/sys/src/cmd/aux/cddb.c	Thu Aug  5 11:54:29 2021
@@ -91,7 +91,7 @@
 	quotefmtinstall();
 	for(i=0; i < t->ntrack; i++){
 		print("</mnt/cd/a%03d audio/flacenc ", i);
-		print("-T 'title='^%q -T 'trackno=%d' ", t->track[i].title, i+1);
+		print("-T 'title='^%q -T 'album='^%q -T 'track=%d' ", t->track[i].title, t->title, i+1);
 		if(t->year[0] != 0)
 			print("-T 'year='^%q ", t->year);
 		if(t->track[i].artist[0] != 0 || t->artist[0] != 0)