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:
Ron Pedde
2006-06-19 04:25:08 +00:00
parent ebbbc0acda
commit 5f3a12c351
7 changed files with 84 additions and 21 deletions

View File

@@ -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()) {