Only scan xml files named iTunes music library

This commit is contained in:
Ron Pedde 2006-06-28 05:57:22 +00:00
parent 02664912f6
commit 607c4b7e61
1 changed files with 1 additions and 3 deletions

View File

@ -212,15 +212,13 @@ void scan_process_playlistlist(void) {
ext = strrchr(pnext->path,'.');
}
if(strcasecmp(ext,".xml") == 0) {
if(strcasecmp(pnext->path,"iTunes Music Library.xml") == 0) {
if(conf_get_int("scanning","process_xml",1)) {
DPRINTF(E_LOG,L_SCAN,"Scanning %s\n",pnext->path);
scan_xml_playlist(pnext->path);
}
} else if(strcasecmp(ext,".m3u") == 0) {
scan_static_playlist(pnext->path);
} else {
DPRINTF(E_LOG,L_SCAN,"Unknown playlist type: %s\n",ext);
}
free(pnext->path);