Remove unused

This commit is contained in:
advplyr 2025-01-02 17:25:10 -06:00
parent 12c6f2e9a5
commit 5e8678f1cc
3 changed files with 0 additions and 11 deletions

View File

@ -177,9 +177,6 @@ class LibraryItem {
get hasAudioFiles() { get hasAudioFiles() {
return this.libraryFiles.some((lf) => lf.fileType === 'audio') return this.libraryFiles.some((lf) => lf.fileType === 'audio')
} }
get hasMediaEntities() {
return this.media.hasMediaEntities
}
// Data comes from scandir library item data // Data comes from scandir library item data
// TODO: Remove this function. Only used when creating a new podcast now // TODO: Remove this function. Only used when creating a new podcast now

View File

@ -100,9 +100,6 @@ class Book {
} }
return total return total
} }
get hasMediaEntities() {
return !!this.tracks.length || this.ebookFile
}
get includedAudioFiles() { get includedAudioFiles() {
return this.audioFiles.filter((af) => !af.exclude) return this.audioFiles.filter((af) => !af.exclude)
} }
@ -129,8 +126,6 @@ class Book {
update(payload) { update(payload) {
const json = this.toJSON() const json = this.toJSON()
delete json.audiobooks // do not update media entities here
delete json.ebooks
let hasUpdates = false let hasUpdates = false
for (const key in json) { for (const key in json) {

View File

@ -124,9 +124,6 @@ class Podcast {
this.episodes.forEach((ep) => (total += ep.size)) this.episodes.forEach((ep) => (total += ep.size))
return total return total
} }
get hasMediaEntities() {
return !!this.episodes.length
}
get duration() { get duration() {
let total = 0 let total = 0
this.episodes.forEach((ep) => (total += ep.duration)) this.episodes.forEach((ep) => (total += ep.duration))