mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-18 07:11:35 +00:00
WIP
This commit is contained in:
parent
ebedaeb3b0
commit
51b3f0d465
8 changed files with 157 additions and 200 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue