Do *not* set mtime to 0 if we are triggering a lazy rescan

mtime==0 means: item does not exist and it will never be get correctly re-indexed in this state
This commit is contained in:
Adrian Ulrich 2017-02-08 18:32:49 +01:00
parent b845bd0b8b
commit 35833f1c65

View File

@ -243,7 +243,7 @@ public class MediaSchema {
* @param dbh the writeable dbh to use
*/
private static void triggerFullMediaScan(SQLiteDatabase dbh) {
dbh.execSQL("UPDATE "+MediaLibrary.TABLE_SONGS+" SET "+MediaLibrary.SongColumns.MTIME+"=0");
dbh.execSQL("UPDATE "+MediaLibrary.TABLE_SONGS+" SET "+MediaLibrary.SongColumns.MTIME+"=1");
// wipes non-bools only - not nice but good enough for now
dbh.execSQL("DELETE FROM "+MediaLibrary.TABLE_PREFERENCES+" WHERE "+MediaLibrary.PreferenceColumns.VALUE+" < 2");
}