Fix:Crash when updating sequence on series #1919

This commit is contained in:
advplyr 2023-07-17 08:09:08 -05:00
parent b715ef3bfc
commit d0cd512be8
2 changed files with 3 additions and 2 deletions

View file

@ -100,6 +100,7 @@ class LibraryItemController {
async updateMedia(req, res) {
const libraryItem = req.libraryItem
const mediaPayload = req.body
// Item has cover and update is removing cover so purge it from cache
if (libraryItem.media.coverPath && (mediaPayload.coverPath === '' || mediaPayload.coverPath === null)) {
await this.cacheManager.purgeCoverCache(libraryItem.id)