Skip to content

Commit

Permalink
fix: always use preferred title in anidb search
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Oct 22, 2023
1 parent 06ab040 commit 778f5f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shoko.Server/API/v3/Helpers/SeriesFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ public Series.AniDB GetAniDB(ResponseAniDBTitles.Anime result, SVR_AnimeSeries s

var anime = series != null ? series.GetAnime() : RepoFactory.AniDB_Anime.GetByAnimeID(result.AnimeID);

var animeTitle = series?.GetSeriesName() ?? anime?.PreferredTitle ?? result.MainTitle;
var animeTitle = series?.GetSeriesName() ?? anime?.PreferredTitle ?? result.PreferredTitle;
var anidb = new Series.AniDB
{
ID = result.AnimeID,
Expand Down

0 comments on commit 778f5f5

Please sign in to comment.