Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry08 committed Nov 8, 2023
1 parent e5c825f commit c2ef9e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AniStream/ViewModels/EpisodeViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,16 +302,20 @@ private void RefreshEpisodesProgress()
);

if (result.Count == 0)
{
result = await _provider.SearchAsync(
Entity.Title.NativeTitle + dubText,
CancellationToken
);
}

if (result.Count == 0)
{
result = await _provider.SearchAsync(
Entity.Title.EnglishTitle + dubText,
CancellationToken
);
}

return result.FirstOrDefault();
}
Expand Down

0 comments on commit c2ef9e7

Please sign in to comment.