mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-07-28 23:48:45 +02:00
Clean local only when checking if files exist
This commit is contained in:
@@ -214,7 +214,12 @@ class DbManager {
|
||||
}
|
||||
}
|
||||
|
||||
if (hasUpdates) {
|
||||
if (lli.serverConnectionConfigId == null) {
|
||||
// Local-only item support was removed in app version 0.9.67, remove any remaining local
|
||||
// only items beginning in 0.9.80
|
||||
Log.d(tag, "cleanLocalLibraryItems: Local only item ${lli.id} - removing from ABS")
|
||||
Paper.book("localLibraryItems").delete(lli.id)
|
||||
} else if (hasUpdates) {
|
||||
Log.d(tag, "cleanLocalLibraryItems: Saving local library item ${lli.id}")
|
||||
Paper.book("localLibraryItems").write(lli.id, lli)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user