Skip to content

Commit

Permalink
fix: don't limit title search to 1 result in tmdb episode linking
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Oct 20, 2024
1 parent 5bc8be0 commit 3635a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shoko.Server/Providers/TMDB/TmdbLinkingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ private CrossRef_AniDB_TMDB_Episode TryFindAnidbAndTmdbMatch(SVR_AniDB_Anime ani
.ThenBy(result => result.episode.EpisodeNumber)
.ToList();
var titleSearchResults = !string.IsNullOrEmpty(anidbTitle) ? tmdbEpisodes
.Search(anidbTitle, episode => [episode.EnglishTitle], true, 1)
.Search(anidbTitle, episode => [episode.EnglishTitle], true)
.OrderBy(result => result)
.ToList() : [];

Expand Down

0 comments on commit 3635a46

Please sign in to comment.