Skip to content

Commit

Permalink
Merge branch 'Fix-for-arte-collection' into Fix-for-#43-Report-errors…
Browse files Browse the repository at this point in the history
…-clearly
  • Loading branch information
simulot committed May 4, 2020
2 parents 1d96103 + 65caf59 commit 9d8d5ba
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions providers/artetv/artetv.go
Expand Up @@ -239,15 +239,14 @@ func (p *ArteTV) getShowList(ctx context.Context, mr *providers.MatchRequest) ch

for _, d := range result.Data {
if strings.Contains(strings.ToLower(d.Title), mr.Show) {
if !p.config.KeepBonus && d.Kind.Code != "SHOW" {
continue
}
if d.Kind.IsCollection {
matchedSeries = append(matchedSeries, d)
} else {
if strings.ToLower(d.Title) == mr.Show {
matchedShows = append(matchedShows, d)
}
}
if !p.config.KeepBonus && (d.Kind.Code != "SHOW") {
continue
}
if strings.ToLower(d.Title) == mr.Show {
matchedShows = append(matchedShows, d)
}
}
}
Expand Down

0 comments on commit 9d8d5ba

Please sign in to comment.