Skip to content

Commit

Permalink
Remove MaxSearchResults (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
scampower3 authored Aug 7, 2024
1 parent 44c26af commit 8b5ec45
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Jellyfin.Plugin.Tvdb/Providers/TvdbMovieProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ namespace Jellyfin.Plugin.Tvdb.Providers
/// </summary>
public class TvdbMovieProvider : IRemoteMetadataProvider<Movie, MovieInfo>
{
private const int MaxSearchResults = 10;
private readonly IHttpClientFactory _httpClientFactory;
private readonly ILogger<TvdbMovieProvider> _logger;
private readonly ILibraryManager _libraryManager;
Expand Down Expand Up @@ -288,7 +287,6 @@ await _tvdbClientManager.GetMovieExtendedByIdAsync(Convert.ToInt32(movieSearchRe
.ThenBy(i => i.Item1.Any(title => title.Contains(comparableName, StringComparison.OrdinalIgnoreCase)) ? 0 : 1)
.ThenBy(i => list.IndexOf(i))
.Select(i => i.Item2)
.Take(MaxSearchResults) // TVDB returns a lot of unrelated results
.ToList();
}

Expand Down
2 changes: 0 additions & 2 deletions Jellyfin.Plugin.Tvdb/Providers/TvdbSeriesProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ namespace Jellyfin.Plugin.Tvdb.Providers
/// </summary>
public class TvdbSeriesProvider : IRemoteMetadataProvider<Series, SeriesInfo>
{
private const int MaxSearchResults = 10;
private readonly IHttpClientFactory _httpClientFactory;
private readonly ILogger<TvdbSeriesProvider> _logger;
private readonly ILibraryManager _libraryManager;
Expand Down Expand Up @@ -377,7 +376,6 @@ await _tvdbClientManager.GetSeriesExtendedByIdAsync(Convert.ToInt32(seriesSearch
.ThenBy(i => i.Item1.Any(title => title.Contains(comparableName, StringComparison.OrdinalIgnoreCase)) ? 0 : 1)
.ThenBy(i => list.IndexOf(i))
.Select(i => i.Item2)
.Take(MaxSearchResults) // TVDB returns a lot of unrelated results
.ToList();
}

Expand Down

0 comments on commit 8b5ec45

Please sign in to comment.