This commit is contained in:
Rhys Tyers 2023-01-09 21:48:56 +00:00
parent ebedaeb3b0
commit 51b3f0d465
8 changed files with 157 additions and 200 deletions

View file

@ -49,6 +49,13 @@ class PodcastManager {
}
}
async refreshPodcastFeed(libraryItem) {
var feed = await getPodcastFeed(libraryItem.media.metadata.feedUrl);
libraryItem.updatedAt = Date.now();
libraryItem.media.update({podcastFeed: feed, podcastFeedDownloadedAt: Date.now()})
await this.db.updateLibraryItem(libraryItem);
}
async downloadPodcastEpisodes(libraryItem, episodesToDownload, isAutoDownload) {
var index = libraryItem.media.episodes.length + 1
episodesToDownload.forEach((ep) => {