mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-12 00:06:37 +08:00
fix media organize and subscription workflows
This commit is contained in:
@@ -61,6 +61,9 @@ func (s *ScraperService) ManualSearch(ctx context.Context, media *model.Media, q
|
||||
|
||||
if providers.want("adult") {
|
||||
for _, candidateQuery := range queries {
|
||||
if externalIDHintsFromText(candidateQuery).useful() {
|
||||
continue
|
||||
}
|
||||
for _, match := range s.manualAdultMatches(ctx, media, candidateQuery) {
|
||||
add("adult", "adult", match)
|
||||
}
|
||||
@@ -140,7 +143,11 @@ func (s *ScraperService) manualSearchQueries(ctx context.Context, media *model.M
|
||||
out = append(out, value)
|
||||
}
|
||||
|
||||
add(ApplyRecognitionWords(ctx, s.repo, query))
|
||||
recognizedQuery := ApplyRecognitionWords(ctx, s.repo, query)
|
||||
add(recognizedQuery)
|
||||
if externalIDHintsFromText(recognizedQuery).useful() {
|
||||
return out
|
||||
}
|
||||
if strings.TrimSpace(query) == "" && media != nil {
|
||||
add(firstText(media.Title, media.OriginalName))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user