mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 10:14:36 +02:00
Add displayTitle and displayAuthor to playback session
This commit is contained in:
parent
9ae71615bc
commit
3d3f20296c
5 changed files with 37 additions and 7 deletions
|
@ -67,7 +67,8 @@ export default {
|
|||
sleepTimerSet: false,
|
||||
sleepTimerTime: 0,
|
||||
sleepTimerRemaining: 0,
|
||||
sleepTimer: null
|
||||
sleepTimer: null,
|
||||
displayTitle: null
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
@ -117,9 +118,6 @@ export default {
|
|||
isPodcast() {
|
||||
return this.streamLibraryItem ? this.streamLibraryItem.mediaType === 'podcast' : false
|
||||
},
|
||||
episode() {
|
||||
return this.playerHandler.episode
|
||||
},
|
||||
mediaMetadata() {
|
||||
return this.media.metadata || {}
|
||||
},
|
||||
|
@ -127,7 +125,7 @@ export default {
|
|||
return this.media.chapters || []
|
||||
},
|
||||
title() {
|
||||
if (this.episode) return this.episode.title
|
||||
if (this.playerHandler.displayTitle) return this.playerHandler.displayTitle
|
||||
return this.mediaMetadata.title || 'No Title'
|
||||
},
|
||||
authors() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue