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

This commit is contained in:
Jacob Moody 2021-08-05 15:54:29 +00:00
parent 185fe31de4
commit 08bcc4bcec

View file

@ -91,7 +91,7 @@ dumpencode(Toc *t)
quotefmtinstall(); quotefmtinstall();
for(i=0; i < t->ntrack; i++){ for(i=0; i < t->ntrack; i++){
print("</mnt/cd/a%03d audio/flacenc ", 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) if(t->year[0] != 0)
print("-T 'year='^%q ", t->year); print("-T 'year='^%q ", t->year);
if(t->track[i].artist[0] != 0 || t->artist[0] != 0) if(t->track[i].artist[0] != 0 || t->artist[0] != 0)