Skip to content

Commit

Permalink
Fix podcast episode continue and listen again home page shelves
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Jan 7, 2025
1 parent 0eed38b commit ed59608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/models/LibraryItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit ed59608

Please sign in to comment.