Fix genre settings not being applied to movies (#52)

This commit is contained in:
Hans Lehnert 2024-04-03 06:07:39 -07:00 committed by GitHub
parent 9f43234f34
commit 0fd8620895
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
@ -273,7 +273,7 @@ namespace Jellyfin.Plugin.AniList.Providers.AniList
Studios = this.GetStudioNames().ToArray(),
ProviderIds = new Dictionary<string, string>() {{ProviderNames.AniList, this.id.ToString()}}
};
if (this.status == "FINISHED" || this.status == "CANCELLED")
{
result.Status = SeriesStatus.Ended;
@ -301,7 +301,7 @@ namespace Jellyfin.Plugin.AniList.Providers.AniList
PremiereDate = this.GetStartDate(),
EndDate = this.GetStartDate(),
CommunityRating = this.GetRating(),
Genres = this.genres.ToArray(),
Genres = this.GetGenres().ToArray(),
Tags = this.GetTagNames().ToArray(),
Studios = this.GetStudioNames().ToArray(),
ProviderIds = new Dictionary<string, string>() {{ProviderNames.AniList, this.id.ToString()}}