From ed5960825b6e298d4f4ab14501dfc367182b65b2 Mon Sep 17 00:00:00 2001 From: advplyr Date: Tue, 7 Jan 2025 08:37:05 -0600 Subject: [PATCH] Fix podcast episode continue and listen again home page shelves --- server/models/LibraryItem.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/models/LibraryItem.js b/server/models/LibraryItem.js index 4035630d..d581c309 100644 --- a/server/models/LibraryItem.js +++ b/server/models/LibraryItem.js @@ -337,7 +337,7 @@ class LibraryItem extends Model { const itemsInProgressPayload = await libraryFilters.getMediaItemsInProgress(library, user, include, limit, false) if (itemsInProgressPayload.items.length) { const ebookOnlyItemsInProgress = itemsInProgressPayload.items.filter((li) => li.media.ebookFormat && !li.media.numTracks) - const audioItemsInProgress = itemsInProgressPayload.items.filter((li) => li.media.numTracks) + const audioItemsInProgress = itemsInProgressPayload.items.filter((li) => li.media.numTracks || li.mediaType === 'podcast') if (audioItemsInProgress.length) { shelves.push({ @@ -448,7 +448,7 @@ class LibraryItem extends Model { const mediaFinishedPayload = await libraryFilters.getMediaFinished(library, user, include, limit) if (mediaFinishedPayload.items.length) { const ebookOnlyItemsInProgress = mediaFinishedPayload.items.filter((li) => li.media.ebookFormat && !li.media.numTracks) - const audioItemsInProgress = mediaFinishedPayload.items.filter((li) => li.media.numTracks) + const audioItemsInProgress = mediaFinishedPayload.items.filter((li) => li.media.numTracks || li.mediaType === 'podcast') if (audioItemsInProgress.length) { shelves.push({