diff --git a/server/models/User.js b/server/models/User.js index 259f841c..b2a4fd2b 100644 --- a/server/models/User.js +++ b/server/models/User.js @@ -611,7 +611,7 @@ class User extends Model { */ getOldMediaProgress(libraryItemId, episodeId = null) { const mediaProgress = this.mediaProgresses?.find((mp) => { - if (episodeId && mp.mediaItemId === episodeId) return true + if (episodeId && mp.mediaItemId !== episodeId) return false return mp.extraData?.libraryItemId === libraryItemId }) return mediaProgress?.getOldMediaProgress() || null