mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 07:05:57 -05:00
Fix iTunes xml scanning
This commit is contained in:
parent
57d75bc35c
commit
5873ce9bd7
@ -461,7 +461,7 @@ char *db_sqlite2_initial1 =
|
|||||||
" subterm VARCHAR(255) DEFAULT NULL,\n"
|
" subterm VARCHAR(255) DEFAULT NULL,\n"
|
||||||
" value VARCHAR(1024) NOT NULL\n"
|
" value VARCHAR(1024) NOT NULL\n"
|
||||||
");\n"
|
");\n"
|
||||||
"insert into config values ('version','','9');\n";
|
"insert into config values ('version','10');\n";
|
||||||
|
|
||||||
char *db_sqlite2_initial2 =
|
char *db_sqlite2_initial2 =
|
||||||
"create table playlists (\n"
|
"create table playlists (\n"
|
||||||
|
@ -506,7 +506,7 @@ char *db_sqlite3_initial1 =
|
|||||||
" subterm VARCHAR(255) DEFAULT NULL,\n"
|
" subterm VARCHAR(255) DEFAULT NULL,\n"
|
||||||
" value VARCHAR(1024) NOT NULL\n"
|
" value VARCHAR(1024) NOT NULL\n"
|
||||||
");\n"
|
");\n"
|
||||||
"insert into config values ('version','','9');\n";
|
"insert into config values ('version','','10');\n";
|
||||||
|
|
||||||
char *db_sqlite3_initial2 =
|
char *db_sqlite3_initial2 =
|
||||||
"create table playlists (\n"
|
"create table playlists (\n"
|
||||||
|
@ -200,6 +200,7 @@ void scan_add_playlistlist(char *path) {
|
|||||||
void scan_process_playlistlist(void) {
|
void scan_process_playlistlist(void) {
|
||||||
PLAYLISTLIST *pnext;
|
PLAYLISTLIST *pnext;
|
||||||
char *ext;
|
char *ext;
|
||||||
|
char *file;
|
||||||
|
|
||||||
DPRINTF(E_DBG,L_SCAN,"Starting playlist loop\n");
|
DPRINTF(E_DBG,L_SCAN,"Starting playlist loop\n");
|
||||||
|
|
||||||
@ -212,7 +213,12 @@ void scan_process_playlistlist(void) {
|
|||||||
ext = strrchr(pnext->path,'.');
|
ext = strrchr(pnext->path,'.');
|
||||||
}
|
}
|
||||||
|
|
||||||
if(strcasecmp(pnext->path,"iTunes Music Library.xml") == 0) {
|
file=pnext->path;
|
||||||
|
if(strrchr(pnext->path,PATHSEP)) {
|
||||||
|
file = strrchr(pnext->path,PATHSEP) + 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(strcasecmp(file,"iTunes Music Library.xml") == 0) {
|
||||||
if(conf_get_int("scanning","process_xml",1)) {
|
if(conf_get_int("scanning","process_xml",1)) {
|
||||||
DPRINTF(E_LOG,L_SCAN,"Scanning %s\n",pnext->path);
|
DPRINTF(E_LOG,L_SCAN,"Scanning %s\n",pnext->path);
|
||||||
scan_xml_playlist(pnext->path);
|
scan_xml_playlist(pnext->path);
|
||||||
|
Loading…
Reference in New Issue
Block a user