mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-01 04:34:13 -04:00
added type to be saved. Should support podcasts
It should support everything important from the podcast metadata: https://api.audiobookshelf.org/#podcast-metadata And the book metadata: https://api.audiobookshelf.org/#book-metadata
This commit is contained in:
parent
2fbb31e0ea
commit
f9bbd71174
@ -178,8 +178,8 @@ class PlaybackSessionManager {
|
|||||||
// This makes sure that the client's metadata is preferred over the library's metadata, if available, to make a non-breaking change
|
// This makes sure that the client's metadata is preferred over the library's metadata, if available, to make a non-breaking change
|
||||||
if(session.mediaMetadata == null) {
|
if(session.mediaMetadata == null) {
|
||||||
// Only sync important metadata
|
// Only sync important metadata
|
||||||
const { title, subtitle, narrators, authors, author, series, genres } = libraryItem?.media?.metadata || {}
|
const { title, subtitle, narrators, authors, author, series, genres, type } = libraryItem?.media?.metadata || {}
|
||||||
session.mediaMetadata = { title, subtitle, narrators, authors, series, genres, author}
|
session.mediaMetadata = { title, subtitle, narrators, authors, author, series, genres, type }
|
||||||
}
|
}
|
||||||
if(session.displayTitle == null || session.displayTitle === '') {
|
if(session.displayTitle == null || session.displayTitle === '') {
|
||||||
session.displayTitle = libraryItem?.media?.metadata?.title ?? ''
|
session.displayTitle = libraryItem?.media?.metadata?.title ?? ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user