Change new podcast modal to remove episode download list #494, Fix error when importing many episodes (set max size to 5MB) #493, show podcast episodes downloading and in queue on podcast landing page

This commit is contained in:
advplyr 2022-04-23 19:41:06 -05:00
parent ebc9e1a888
commit 034d858f18
14 changed files with 222 additions and 126 deletions

View file

@ -119,9 +119,10 @@ class CoverManager {
}
}
async downloadCoverFromUrl(libraryItem, url) {
async downloadCoverFromUrl(libraryItem, url, forceLibraryItemFolder = false) {
try {
var coverDirPath = this.getCoverDirectory(libraryItem)
// Force save cover with library item is used for adding new podcasts
var coverDirPath = forceLibraryItemFolder ? libraryItem.path : this.getCoverDirectory(libraryItem)
await fs.ensureDir(coverDirPath)
var temppath = Path.posix.join(coverDirPath, 'cover')