Update:Download podcast episodes and embed meta tags #1488

This commit is contained in:
advplyr 2023-03-29 18:05:53 -05:00
parent 575a162f8b
commit 704fbaced8
3 changed files with 87 additions and 6 deletions

View file

@ -106,6 +106,10 @@ class PodcastEpisode {
get enclosureUrl() {
return this.enclosure ? this.enclosure.url : null
}
get pubYear() {
if (!this.publishedAt) return null
return new Date(this.publishedAt).getFullYear()
}
setData(data, index = 1) {
this.id = getId('ep')