mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-05-31 20:25:34 -04:00
Fix:Crash on failed scanner find covers #2164
This commit is contained in:
parent
f2aed08d51
commit
e10b178565
@ -1111,7 +1111,7 @@ class BookScanner {
|
|||||||
const result = await CoverManager.downloadCoverFromUrlNew(results[i], libraryItemId, libraryItemPath)
|
const result = await CoverManager.downloadCoverFromUrlNew(results[i], libraryItemId, libraryItemPath)
|
||||||
|
|
||||||
if (result.error) {
|
if (result.error) {
|
||||||
Logger.error(`[Scanner] Failed to download cover from url "${results[i]}" | Attempt ${i + 1}`, result.error)
|
libraryScan.addLog(LogLevel.ERROR, `Failed to download cover from url "${results[i]}" | Attempt ${i + 1}`, result.error)
|
||||||
} else if (result.cover) {
|
} else if (result.cover) {
|
||||||
return result.cover
|
return result.cover
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user