scanner: Clean up non-destructive rescan
Fix several issues with the non-destructive rescan functionality. Most of these issues also affected inotify scanning as well. These include annoying debug messages, adding album art for files that we aren't supposed to be scanning anyway, incrementing the UpdateID when no changes were made to the database, and other smaller issues.
This commit is contained in:
7
sql.c
7
sql.c
@ -282,6 +282,13 @@ db_upgrade(sqlite3 *db)
|
||||
if (ret != SQLITE_OK)
|
||||
return 9;
|
||||
}
|
||||
if (db_vers < 11)
|
||||
{
|
||||
DPRINTF(E_WARN, L_DB_SQL, "Updating DB version to v%d\n", 11);
|
||||
ret = sql_exec(db, "ALTER TABLE PLAYLISTS ADD TIMESTAMP INTEGER DEFAULT 1");
|
||||
if (ret != SQLITE_OK)
|
||||
return 10;
|
||||
}
|
||||
sql_exec(db, "PRAGMA user_version = %d", DB_VERSION);
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user