Skip to content

Commit

Permalink
Avoid timeout caused by too many search results in identify. related …
Browse files Browse the repository at this point in the history
…with #25
  • Loading branch information
Libitum committed Aug 10, 2020
1 parent 016bbd3 commit e67211e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jellyfin.Plugin.Douban/BaseProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ protected async Task<IEnumerable<string>> SearchSidByName(string name,
url, e.StatusCode);
throw e;
}
return sidList.Distinct().ToList();
// To avoid timeout by too many search results, just limit the result to 7.
return sidList.Distinct().Take(7).ToList();
}

protected async Task<MetadataResult<T>> GetMetaFromDouban<T>(string sid,
Expand Down

0 comments on commit e67211e

Please sign in to comment.