This commit is contained in:
truewhile
2026-09-09 00:03:14 +08:00
parent fb4e762026
commit 8eb017fedc
11 changed files with 170 additions and 14 deletions
+7
View File
@@ -8,6 +8,7 @@ type ScrapeOptions struct {
DeferEpisodeDetails bool
ForceRematch bool
RebuildIdentity bool
resultProvider *string
}
func (o ScrapeOptions) episodeArtworkEnabled() bool {
@@ -18,3 +19,9 @@ func skipEpisodeArtworkOptions(retryNoMatch bool) ScrapeOptions {
episodeArtwork := false
return ScrapeOptions{RetryNoMatch: retryNoMatch, EpisodeArtwork: &episodeArtwork}
}
func (o ScrapeOptions) recordProvider(provider string) {
if o.resultProvider != nil {
*o.resultProvider = provider
}
}