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:
Vito0912 2024-12-17 15:27:37 +01:00
parent 2fbb31e0ea
commit f9bbd71174
No known key found for this signature in database
GPG Key ID: 29A3D509FE70B237

View File

@ -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
if(session.mediaMetadata == null) {
// Only sync important metadata
const { title, subtitle, narrators, authors, author, series, genres } = libraryItem?.media?.metadata || {}
session.mediaMetadata = { title, subtitle, narrators, authors, series, genres, author}
const { title, subtitle, narrators, authors, author, series, genres, type } = libraryItem?.media?.metadata || {}
session.mediaMetadata = { title, subtitle, narrators, authors, author, series, genres, type }
}
if(session.displayTitle == null || session.displayTitle === '') {
session.displayTitle = libraryItem?.media?.metadata?.title ?? ''