File grip-3.2.0-ogg.patch of Package grip
- fix creation of genre comment when creating ogg vorbis files:
Use eoggenc -G %G instead of using -G %g, otherwise only the mp3
genre number would be put into the comment field, but ogg uses a
genre string.
Update: keep old ginfo->selected_encoder, grip uses it in the
config file as well, for more info see the comment below.
================================================================================
--- grip-3.2.0/src/grip.c
+++ grip-3.2.0/src/grip.c
@@ -855,11 +855,11 @@
ginfo->stop_between_tracks=FALSE;
*ginfo->wav_filter_cmd='\0';
*ginfo->disc_filter_cmd='\0';
- ginfo->selected_encoder=1;
- strcpy(ginfo->mp3cmdline,"-h -b %b %w %m");
- FindExeInPath("lame", ginfo->mp3exename, sizeof(ginfo->mp3exename));
+ ginfo->selected_encoder=6; /* oggenc's index in encoder_defaults[] */
+ strcpy(ginfo->mp3cmdline,"-o %m -a %a -l %d -t %n -b %b %w -N %t -G %G -d %y");
+ FindExeInPath("oggenc", ginfo->mp3exename, sizeof(ginfo->mp3exename));
strcpy(ginfo->mp3fileformat,"~/mp3/%A/%d/%n.%x");
- strcpy(ginfo->mp3extension,"mp3");
+ strcpy(ginfo->mp3extension,"ogg");
ginfo->mp3nice=0;
*ginfo->mp3_filter_cmd='\0';
ginfo->delete_wavs=TRUE;
--- grip-3.2.0/src/gripcfg.c
+++ grip-3.2.0/src/gripcfg.c
@@ -55,9 +55,9 @@
"mp3"},
{"gogo","-b %b %w %m","mp3"},
{"oggenc",
- "-o %m -a %a -l %d -t %n -b %b %w -N %t -G %g -d %y",
+ "-o %m -a %a -l %d -t %n -b %b %w -N %t -G %G -d %y",
"ogg"},
- {"flac","-V -o %m %w","flac"},
+ {"flac","--best -TTRACKNUMBER=%t -TALBUM=%d -TTITLE=%n -TARTIST=%a -TGENRE=%G -TDATE=%y -TDISCID=%i -TDESCRIPTION=\"Created by Grip\" -V -o %m %w","flac"},
{"other","",""},
{"",""}
};