mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-22 08:31:41 +01:00
Add:Podcast option to quick match all unmatched episodes
This commit is contained in:
1 parent
1609f1a499
commit
49c581ed35
4 files changed
+88
-15
No files matched your search
@@ -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 = {}) {
|
||||
|
||||
Reference in new issue
Block a user