@@ -1415,6 +1415,7 @@ int main(int argc, char **argv)
1415
1415
settings .print_info_only = 0 ;
1416
1416
settings .disable_mb = 0 ;
1417
1417
settings .disable_coverart_db = 0 ;
1418
+ settings .coverart_lookup_size = COVERART_LOOKUP_SIZE_ORIGINAL ;
1418
1419
settings .decode_hdcd = 0 ;
1419
1420
settings .deemphasis = 1 ;
1420
1421
settings .force_deemphasis = 0 ;
@@ -1449,7 +1450,7 @@ int main(int argc, char **argv)
1449
1450
int track_cover_arts_map [198 ] = { 0 };
1450
1451
int nb_track_cover_arts = 0 ;
1451
1452
1452
- while ((c = getopt (argc , argv , "hNAUfHIVQEGWKOl:a:t:b:c:r:d:o:s:S:D:p:C:R:P:F:L:T:M:Z:" )) != -1 ) {
1453
+ while ((c = getopt (argc , argv , "hNAUfHIVQEGWKOl:a:t:b:c:r:d:o:s:S:D:p:C:R:P:F:L:T:M:Z:m: " )) != -1 ) {
1453
1454
switch (c ) {
1454
1455
case 'h' :
1455
1456
cyanrip_log (ctx , 0 , "cyanrip %s (%s) help:\n" , PROJECT_VERSION_STRING , vcstag );
@@ -1485,6 +1486,7 @@ int main(int argc, char **argv)
1485
1486
cyanrip_log (ctx , 0 , " -N Disables MusicBrainz lookup and ignores lack of manual metadata\n" );
1486
1487
cyanrip_log (ctx , 0 , " -A Disables AccurateRip database query and validation\n" );
1487
1488
cyanrip_log (ctx , 0 , " -U Disables Cover art DB database query and retrieval\n" );
1489
+ cyanrip_log (ctx , 0 , " -m Lookup cover art with max size: 250, 500, 1200, -1 (no limit, default)\n" );
1488
1490
cyanrip_log (ctx , 0 , " -G Disables embedding of cover art images\n" );
1489
1491
cyanrip_log (ctx , 0 , "\n Misc. options:\n" );
1490
1492
cyanrip_log (ctx , 0 , " -Q Eject tray once successfully done\n" );
@@ -1550,6 +1552,26 @@ int main(int argc, char **argv)
1550
1552
case 'U' :
1551
1553
settings .disable_coverart_db = 1 ;
1552
1554
break ;
1555
+ case 'm' :
1556
+ long size = strtol (optarg , NULL , 10 );
1557
+ switch (size ) {
1558
+ case -1 :
1559
+ settings .coverart_lookup_size = COVERART_LOOKUP_SIZE_ORIGINAL ;
1560
+ break ;
1561
+ case 250 :
1562
+ settings .coverart_lookup_size = COVERART_LOOKUP_SIZE_250 ;
1563
+ break ;
1564
+ case 500 :
1565
+ settings .coverart_lookup_size = COVERART_LOOKUP_SIZE_500 ;
1566
+ break ;
1567
+ case 1200 :
1568
+ settings .coverart_lookup_size = COVERART_LOOKUP_SIZE_1200 ;
1569
+ break ;
1570
+ default :
1571
+ cyanrip_log (ctx , 0 , "Invalid max coverart max size %i (must be 250, 500 or 1200)\n" , size );
1572
+ return 1 ;
1573
+ }
1574
+ break ;
1553
1575
case 'b' :
1554
1576
settings .bitrate = strtof (optarg , NULL );
1555
1577
break ;
0 commit comments