mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-13 10:55:05 +02:00
Fix podcast episode playback session duration, use podcast episode plaintext description
This commit is contained in:
parent
5d305c96ad
commit
d69f6020c6
5 changed files with 30 additions and 7 deletions
|
@ -136,9 +136,14 @@ class PlaybackSession {
|
|||
this.mediaMetadata = libraryItem.media.metadata.clone()
|
||||
this.chapters = (libraryItem.media.chapters || []).map(c => ({ ...c })) // Only book mediaType has chapters
|
||||
this.displayTitle = libraryItem.media.getPlaybackTitle(episodeId)
|
||||
this.displayAuthor = libraryItem.media.getPlaybackAuthor(episodeId)
|
||||
this.displayAuthor = libraryItem.media.getPlaybackAuthor()
|
||||
this.coverPath = libraryItem.media.coverPath
|
||||
this.duration = libraryItem.media.duration
|
||||
|
||||
if (episodeId) {
|
||||
this.duration = libraryItem.media.getEpisodeDuration(episodeId)
|
||||
} else {
|
||||
this.duration = libraryItem.media.duration
|
||||
}
|
||||
|
||||
this.mediaPlayer = mediaPlayer
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue