mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-26 04:26:14 -05:00
Import streaming stations form iTunes XML file, closing ticket #130, add scan/correct_order to make static playlists return in correct order closing ticket #159
This commit is contained in:
11
src/main.c
11
src/main.c
@@ -243,8 +243,10 @@ int main(int argc, char *argv[]) {
|
||||
char *perr=NULL;
|
||||
char *apppath;
|
||||
|
||||
int debuglevel=0;
|
||||
|
||||
config.use_mdns=1;
|
||||
err_setlevel(1);
|
||||
err_setlevel(debuglevel);
|
||||
|
||||
config.foreground=0;
|
||||
while((option=getopt(argc,argv,"D:d:c:P:mfrysiuva")) != -1) {
|
||||
@@ -253,7 +255,8 @@ int main(int argc, char *argv[]) {
|
||||
appdir = 1;
|
||||
break;
|
||||
case 'd':
|
||||
err_setlevel(atoi(optarg));
|
||||
debuglevel = atoi(optarg);
|
||||
err_setlevel(debuglevel);
|
||||
break;
|
||||
case 'D':
|
||||
if(err_setdebugmask(optarg)) {
|
||||
@@ -338,6 +341,10 @@ int main(int argc, char *argv[]) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
if(debuglevel) /* was specified, should override the config file */
|
||||
err_setlevel(debuglevel);
|
||||
|
||||
if(convert_conf) {
|
||||
fprintf(stderr,"Converting config file...\n");
|
||||
if(!conf_write()) {
|
||||
|
||||
Reference in New Issue
Block a user