mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-18 08:31:16 +02:00
2017-09-20 Fred Gleason <fredg@paravelsystems.com>
* Added a '--to-mono' option to rdimport(1).
This commit is contained in:
@@ -90,6 +90,7 @@ MainObject::MainObject(QObject *parent)
|
||||
import_clear_datetimes=false;
|
||||
import_clear_dayparts=false;
|
||||
import_xml=false;
|
||||
import_to_mono=false;
|
||||
|
||||
//
|
||||
// Read Command Options
|
||||
@@ -254,6 +255,9 @@ MainObject::MainObject(QObject *parent)
|
||||
exit(256);
|
||||
}
|
||||
}
|
||||
if(import_cmd->key(i)=="--to-mono") {
|
||||
import_to_mono=true;
|
||||
}
|
||||
if(import_cmd->key(i)=="--clear-daypart-times") {
|
||||
import_clear_dayparts=true;
|
||||
import_cmd->setProcessed(i,true);
|
||||
@@ -567,6 +571,9 @@ MainObject::MainObject(QObject *parent)
|
||||
import_single_cart=true;
|
||||
}
|
||||
}
|
||||
if(import_to_mono) {
|
||||
import_channels=1;
|
||||
}
|
||||
|
||||
//
|
||||
// Print Status Messages
|
||||
@@ -584,6 +591,12 @@ MainObject::MainObject(QObject *parent)
|
||||
else {
|
||||
printf(" Log mode is OFF\n");
|
||||
}
|
||||
if(import_to_mono) {
|
||||
printf(" Force to Mono is ON\n");
|
||||
}
|
||||
else {
|
||||
printf(" Force to Mono is OFF\n");
|
||||
}
|
||||
if(import_normalization_level==0) {
|
||||
printf(" Normalization is OFF\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user