diff --git a/server/objects/LibraryItem.js b/server/objects/LibraryItem.js index 4656a028..6578bae0 100644 --- a/server/objects/LibraryItem.js +++ b/server/objects/LibraryItem.js @@ -177,9 +177,6 @@ class LibraryItem { get hasAudioFiles() { return this.libraryFiles.some((lf) => lf.fileType === 'audio') } - get hasMediaEntities() { - return this.media.hasMediaEntities - } // Data comes from scandir library item data // TODO: Remove this function. Only used when creating a new podcast now diff --git a/server/objects/mediaTypes/Book.js b/server/objects/mediaTypes/Book.js index 4701e422..5d455018 100644 --- a/server/objects/mediaTypes/Book.js +++ b/server/objects/mediaTypes/Book.js @@ -100,9 +100,6 @@ class Book { } return total } - get hasMediaEntities() { - return !!this.tracks.length || this.ebookFile - } get includedAudioFiles() { return this.audioFiles.filter((af) => !af.exclude) } @@ -129,8 +126,6 @@ class Book { update(payload) { const json = this.toJSON() - delete json.audiobooks // do not update media entities here - delete json.ebooks let hasUpdates = false for (const key in json) { diff --git a/server/objects/mediaTypes/Podcast.js b/server/objects/mediaTypes/Podcast.js index 510575ed..d33b28ba 100644 --- a/server/objects/mediaTypes/Podcast.js +++ b/server/objects/mediaTypes/Podcast.js @@ -124,9 +124,6 @@ class Podcast { this.episodes.forEach((ep) => (total += ep.size)) return total } - get hasMediaEntities() { - return !!this.episodes.length - } get duration() { let total = 0 this.episodes.forEach((ep) => (total += ep.duration))