mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 07:35:55 +01: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");
|
||||
}
|
||||
|
||||
@@ -87,6 +87,7 @@ class MainObject : public QObject
|
||||
RDUser *import_user;
|
||||
bool import_verbose;
|
||||
bool import_log_mode;
|
||||
bool import_to_mono;
|
||||
bool import_use_cartchunk_cutid;
|
||||
int import_cart_number_offset;
|
||||
bool import_single_cart;
|
||||
|
||||
Reference in New Issue
Block a user