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:
parent
b845bd0b8b
commit
35833f1c65
@ -243,7 +243,7 @@ public class MediaSchema {
|
|||||||
* @param dbh the writeable dbh to use
|
* @param dbh the writeable dbh to use
|
||||||
*/
|
*/
|
||||||
private static void triggerFullMediaScan(SQLiteDatabase dbh) {
|
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
|
// wipes non-bools only - not nice but good enough for now
|
||||||
dbh.execSQL("DELETE FROM "+MediaLibrary.TABLE_PREFERENCES+" WHERE "+MediaLibrary.PreferenceColumns.VALUE+" < 2");
|
dbh.execSQL("DELETE FROM "+MediaLibrary.TABLE_PREFERENCES+" WHERE "+MediaLibrary.PreferenceColumns.VALUE+" < 2");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user