mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-29 14:47:21 +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}")
|
Log.d(tag, "cleanLocalLibraryItems: Saving local library item ${lli.id}")
|
||||||
Paper.book("localLibraryItems").write(lli.id, lli)
|
Paper.book("localLibraryItems").write(lli.id, lli)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user