Add Podcast match tab and find covers

This commit is contained in:
advplyr committed 2022-04-13 18:13:39 -05:00
1 parent 4edba20e9e
commit 3f6ed6dbf9
10 files changed
+113 -20

No files matched your search

+3 -1
View File
@@ -66,7 +66,9 @@ class LibraryItemController {
await this.cacheManager.purgeCoverCache(libraryItem.id)
}
await this.createAuthorsAndSeriesForItemUpdate(mediaPayload)
if (libraryItem.isBook) {
await this.createAuthorsAndSeriesForItemUpdate(mediaPayload)
}
var hasUpdates = libraryItem.media.update(mediaPayload)
if (hasUpdates) {
+5 -1
View File
@@ -147,7 +147,11 @@ class MiscController {
async findCovers(req, res) {
var query = req.query
var result = await this.bookFinder.findCovers(query.provider, query.title, query.author || null)
var podcast = query.podcast == 1
var result = null
if (podcast) result = await this.podcastFinder.findCovers(query.title)
else result = await this.bookFinder.findCovers(query.provider, query.title, query.author || null)
res.json(result)
}