mirror of
https://github.com/metatube-community/jellyfin-plugin-metatube.git
synced 2026-07-18 04:20:37 +08:00
refactor tidy
This commit is contained in:
@@ -63,6 +63,7 @@ public class MovieProvider : BaseProvider, IRemoteMetadataProvider<Movie, MovieI
|
||||
Genres = m.Tags,
|
||||
PremiereDate = m.ReleaseDate.ValidDateTime(),
|
||||
ProductionYear = m.ReleaseDate.ValidDateTime()?.Year,
|
||||
CommunityRating = m.Score > 0 ? m.Score * 2 : null,
|
||||
OfficialRating = Constant.Rating
|
||||
},
|
||||
HasMetadata = true
|
||||
@@ -75,9 +76,6 @@ public class MovieProvider : BaseProvider, IRemoteMetadataProvider<Movie, MovieI
|
||||
Id = m.Id
|
||||
});
|
||||
|
||||
// Set movie rating.
|
||||
result.Item.CommunityRating = m.Score > 0 ? m.Score * 2 : null;
|
||||
|
||||
// Set studios: maker > publisher.
|
||||
result.Item.Studios = !string.IsNullOrWhiteSpace(m.Maker)
|
||||
? new[] { m.Maker }
|
||||
|
||||
Reference in New Issue
Block a user