mirror of
https://github.com/sudoxnym/audiobookshelf-atv.git
synced 2026-07-15 00:12:28 +00:00
Clean local only when checking if files exist
This commit is contained in:
parent
b2ebeafed5
commit
1e0f1f329f
1 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue