mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Fix:API get media progress for episode
This commit is contained in:
parent
f9aaeb3a34
commit
315b21db00
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user