Podcasts add get episode feed and download, add edit podcast episode modal

This commit is contained in:
advplyr committed 2022-03-27 15:37:04 -05:00
1 parent 08e1782253
commit 3f8e685d64
16 files changed
+398 -23

No files matched your search

+14
View File
@@ -115,6 +115,20 @@ class PodcastEpisode {
this.updatedAt = Date.now()
}
update(payload) {
var hasUpdates = false
for (const key in this.toJSON()) {
if (payload[key] != undefined && payload[key] != this[key]) {
this[key] = payload[key]
hasUpdates = true
}
}
if (hasUpdates) {
this.updatedAt = Date.now()
}
return hasUpdates
}
// Only checks container format
checkCanDirectPlay(payload) {
var supportedMimeTypes = payload.supportedMimeTypes || []