Added safesearch to .img when using google (thx to ZeroNyan)

This commit is contained in:
Kwoth
2022-01-10 13:32:18 +01:00
parent 17cdd6f893
commit c58ae9fc13

View File

@@ -341,6 +341,7 @@ public class GoogleApiService : IGoogleApiService, INService
req.Fields = "items(image(contextLink,thumbnailLink),link)";
req.SearchType = CseResource.ListRequest.SearchTypeEnum.Image;
req.Start = new NadekoRandom().Next(0, 20);
req.Safe = CseResource.ListRequest.SafeEnum.Active;
var search = await req.ExecuteAsync();