* Fixup last checkin.
This commit is contained in:
parent
cb5ab0b1c6
commit
715af3519b
@ -147,7 +147,7 @@ fill_playlists()
|
|||||||
if( last_dir )
|
if( last_dir )
|
||||||
{
|
{
|
||||||
fname = basename(plist.path);
|
fname = basename(plist.path);
|
||||||
detailID = sql_get_int_field(db, "SELECT ID from DETAILS where PATH = '%s/%s'", last_dir, fname);
|
detailID = sql_get_int_field(db, "SELECT ID from DETAILS where PATH = '%q/%q'", last_dir, fname);
|
||||||
if( detailID <= 0 )
|
if( detailID <= 0 )
|
||||||
{
|
{
|
||||||
sqlite3_free(last_dir);
|
sqlite3_free(last_dir);
|
||||||
|
@ -829,9 +829,13 @@ start_scanner()
|
|||||||
sql_exec(db, "create INDEX IDX_SEARCH_OPT ON OBJECTS(OBJECT_ID, CLASS, DETAIL_ID);");
|
sql_exec(db, "create INDEX IDX_SEARCH_OPT ON OBJECTS(OBJECT_ID, CLASS, DETAIL_ID);");
|
||||||
|
|
||||||
if( GETFLAG(NO_PLAYLIST_MASK) )
|
if( GETFLAG(NO_PLAYLIST_MASK) )
|
||||||
|
{
|
||||||
DPRINTF(E_WARN, L_SCANNER, "Playlist creation disabled\n");
|
DPRINTF(E_WARN, L_SCANNER, "Playlist creation disabled\n");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
fill_playlists();
|
fill_playlists();
|
||||||
|
}
|
||||||
|
|
||||||
DPRINTF(E_DEBUG, L_SCANNER, "Initial file scan completed\n", DB_VERSION);
|
DPRINTF(E_DEBUG, L_SCANNER, "Initial file scan completed\n", DB_VERSION);
|
||||||
//JM: Set up a db version number, so we know if we need to rebuild due to a new structure.
|
//JM: Set up a db version number, so we know if we need to rebuild due to a new structure.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user