Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdrex16 committed Apr 30, 2023
1 parent 608ffe5 commit c1515d5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions SdarotAPI/SdarotDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static async Task<string> RetrieveSdarotDomain()

public SdarotDriver(bool ignoreChecks)
{
HttpClientHandler handler = new HttpClientHandler()
HttpClientHandler handler = new HttpClientHandler
{
AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate
};
Expand Down Expand Up @@ -78,10 +78,8 @@ public async Task<IEnumerable<SeriesInformation>> SearchSeries(string searchQuer
x.SeriesNameHe.Contains(searchQuery, StringComparison.CurrentCultureIgnoreCase) ||
x.SeriesNameEn.Contains(searchQuery, StringComparison.CurrentCultureIgnoreCase)).ToList();

//var doc = new HtmlDocument();
//doc.LoadHtml(searchHtml);

//var seriesNameElement = doc.DocumentNode.SelectSingleNode(Constants.XPathSelectors.SeriesPageSeriesName);
// If none, turn to empty array.
relevantShows ??= new List<SeriesInformation>();

// In case there is only one result
if (relevantShows.Count() == 1)
Expand Down

0 comments on commit c1515d5

Please sign in to comment.