Skip to content

Commit

Permalink
Add native titles to series if Japanese is not the preferred language
Browse files Browse the repository at this point in the history
  • Loading branch information
ayyu committed Mar 13, 2021
1 parent f8f39ea commit b276db7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Jellyfin.Plugin.AniList/Providers/AniList/ApiModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ public Series ToSeries()
{
var result = new Series {
Name = this.GetPreferredTitle("en"),
if (config.TitlePreference != TitlePreferenceType.Japanese)
{
OriginalTitle = this.title.native;
}
Overview = this.description,
ProductionYear = this.startDate.year,
PremiereDate = this.GetStartDate(),
Expand Down Expand Up @@ -261,6 +265,10 @@ public Movie ToMovie()
{
return new Movie {
Name = this.GetPreferredTitle("en"),
if (config.TitlePreference != TitlePreferenceType.Japanese)
{
OriginalTitle = this.title.native;
}
Overview = this.description,
ProductionYear = this.startDate.year,
PremiereDate = this.GetStartDate(),
Expand Down

0 comments on commit b276db7

Please sign in to comment.