mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-06 06:56:27 +01:00
Update PlaybackSession to use new library item model
This commit is contained in:
1 parent
d205c6f734
commit
c251f1899d
16 files changed
+284
-193
No files matched your search
@@ -168,16 +168,6 @@ class PodcastEpisode {
|
||||
return hasUpdates
|
||||
}
|
||||
|
||||
// Only checks container format
|
||||
checkCanDirectPlay(payload) {
|
||||
const supportedMimeTypes = payload.supportedMimeTypes || []
|
||||
return supportedMimeTypes.includes(this.audioFile.mimeType)
|
||||
}
|
||||
|
||||
getDirectPlayTracklist() {
|
||||
return this.tracks
|
||||
}
|
||||
|
||||
checkEqualsEnclosureUrl(url) {
|
||||
if (!this.enclosure?.url) return false
|
||||
return this.enclosure.url == url
|
||||
|
||||
Reference in new issue
Block a user