mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-15 11:54:56 +02:00
Update:Podcast library items do not show incomplete error when it doesnt have audio files #636
This commit is contained in:
parent
ec6e70725c
commit
e5469cc0f8
1 changed files with 7 additions and 5 deletions
|
@ -96,7 +96,8 @@ class Scanner {
|
||||||
|
|
||||||
await this.createNewAuthorsAndSeries(libraryItem)
|
await this.createNewAuthorsAndSeries(libraryItem)
|
||||||
|
|
||||||
if (!libraryItem.hasMediaEntities) { // Library Item is invalid
|
// Library Item is invalid - (a book has no audio files or ebook files)
|
||||||
|
if (!libraryItem.hasMediaEntities && libraryItem.mediaType !== 'podcast') {
|
||||||
libraryItem.setInvalid()
|
libraryItem.setInvalid()
|
||||||
hasUpdated = true
|
hasUpdated = true
|
||||||
} else if (libraryItem.isInvalid) {
|
} else if (libraryItem.isInvalid) {
|
||||||
|
@ -359,7 +360,8 @@ class Scanner {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!libraryItem.hasMediaEntities) { // Library item is invalid
|
// Library Item is invalid - (a book has no audio files or ebook files)
|
||||||
|
if (!libraryItem.hasMediaEntities && libraryItem.mediaType !== 'podcast') {
|
||||||
libraryItem.setInvalid()
|
libraryItem.setInvalid()
|
||||||
hasUpdated = true
|
hasUpdated = true
|
||||||
} else if (libraryItem.isInvalid) {
|
} else if (libraryItem.isInvalid) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue