mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-02 09:14:40 +02:00
Add:Podcast option to quick match all unmatched episodes
This commit is contained in:
parent
1609f1a499
commit
49c581ed35
4 changed files with 88 additions and 15 deletions
|
@ -880,15 +880,15 @@ class Scanner {
|
|||
return false
|
||||
}
|
||||
|
||||
var episodesWereUpdated = false
|
||||
let numEpisodesUpdated = 0
|
||||
for (const episode of episodesToQuickMatch) {
|
||||
const episodeMatches = findMatchingEpisodesInFeed(feed, episode.title)
|
||||
if (episodeMatches && episodeMatches.length) {
|
||||
const wasUpdated = this.updateEpisodeWithMatch(libraryItem, episode, episodeMatches[0].episode, options)
|
||||
if (wasUpdated) episodesWereUpdated = true
|
||||
if (wasUpdated) numEpisodesUpdated++
|
||||
}
|
||||
}
|
||||
return episodesWereUpdated
|
||||
return numEpisodesUpdated
|
||||
}
|
||||
|
||||
updateEpisodeWithMatch(libraryItem, episode, episodeToMatch, options = {}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue