Skip to content

Commit

Permalink
Fix bug on BingVisualSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
d4n3436 committed Aug 28, 2024
1 parent 258d76d commit ee1de3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Apis/Bing/BingVisualSearch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ public async Task<IReadOnlyList<IBingReverseImageSearchResult>> ReverseImageSear
}

var defaultTag = GetImageTag(document, string.Empty);

if (defaultTag.ValueKind == JsonValueKind.Undefined)
return [];

var visualSearchAction = defaultTag
.GetProperty("actions"u8)
.EnumerateArray()
Expand Down

0 comments on commit ee1de3f

Please sign in to comment.