Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JavScraper committed Jun 2, 2021
1 parent 0efcc66 commit 99659ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Emby.Plugins.JavScraper/JavPersonProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public async Task<MetadataResult<Person>> GetMetadata(PersonLookupInfo info, Can

_logger?.Info($"{nameof(GetMetadata)} info:{_jsonSerializer.SerializeToString(info)}");

if ((index = info.GetJavPersonIndex(_jsonSerializer)) == null || !index.Url.IsWebUrl())
if ((index = info.GetJavPersonIndex(_jsonSerializer)) == null || index.Url?.Contains("xslist.org", StringComparison.OrdinalIgnoreCase) != true || !index.Url.IsWebUrl())
{
var res = await GetSearchResults(info, cancellationToken).ConfigureAwait(false);
if (res.Count() == 0 || (index = res.FirstOrDefault().GetJavPersonIndex(_jsonSerializer)) == null)
Expand Down

0 comments on commit 99659ab

Please sign in to comment.