mirror of
https://github.com/metatube-community/jellyfin-plugin-metatube.git
synced 2026-05-05 16:13:15 +08:00
use SetGenres
This commit is contained in:
@@ -65,7 +65,6 @@ public class MovieProvider : BaseProvider, IRemoteMetadataProvider<Movie, MovieI
|
||||
OriginalTitle = originalTitle,
|
||||
Overview = m.Summary,
|
||||
Tagline = m.Series,
|
||||
Genres = m.Tags,
|
||||
OfficialRating = Rating,
|
||||
PremiereDate = m.ReleaseDate.TryGetValidDateTime(),
|
||||
ProductionYear = m.ReleaseDate.TryGetValidDateTime()?.Year,
|
||||
@@ -82,6 +81,10 @@ public class MovieProvider : BaseProvider, IRemoteMetadataProvider<Movie, MovieI
|
||||
Position = pid.Position
|
||||
});
|
||||
|
||||
// Set Genres.
|
||||
if (m.Tags?.Length > 0)
|
||||
result.Item.SetGenres(m.Tags);
|
||||
|
||||
// Add Studios.
|
||||
if (!string.IsNullOrWhiteSpace(m.Maker))
|
||||
result.Item.AddStudio(m.Maker);
|
||||
|
||||
Reference in New Issue
Block a user