fix build error
This commit is contained in:
parent
c29f80725b
commit
45e4a40c28
|
@ -45,4 +45,5 @@ public class PluginConfiguration : BasePluginConfiguration
|
||||||
public string TmdbApiKey { get; set; } = string.Empty;
|
public string TmdbApiKey { get; set; } = string.Empty;
|
||||||
|
|
||||||
public string TmdbHost { get; set; } = string.Empty;
|
public string TmdbHost { get; set; } = string.Empty;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -179,7 +179,7 @@ namespace Jellyfin.Plugin.MetaShark.Providers
|
||||||
result.Item = movie;
|
result.Item = movie;
|
||||||
result.QueriedById = true;
|
result.QueriedById = true;
|
||||||
result.HasMetadata = true;
|
result.HasMetadata = true;
|
||||||
subject.LimitDirectorCelebrities.Take(this.config.MaxCastMembers).ToList().ForEach(c => result.AddPerson(new PersonInfo
|
subject.LimitDirectorCelebrities.Take(Configuration.PluginConfiguration.MAX_CAST_MEMBERS).ToList().ForEach(c => result.AddPerson(new PersonInfo
|
||||||
{
|
{
|
||||||
Name = c.Name,
|
Name = c.Name,
|
||||||
Type = c.RoleType,
|
Type = c.RoleType,
|
||||||
|
@ -294,7 +294,7 @@ namespace Jellyfin.Plugin.MetaShark.Providers
|
||||||
// 演员
|
// 演员
|
||||||
if (item.Credits?.Cast != null)
|
if (item.Credits?.Cast != null)
|
||||||
{
|
{
|
||||||
foreach (var actor in item.Credits.Cast.OrderBy(a => a.Order).Take(this.config.MaxCastMembers))
|
foreach (var actor in item.Credits.Cast.OrderBy(a => a.Order).Take(Configuration.PluginConfiguration.MAX_CAST_MEMBERS))
|
||||||
{
|
{
|
||||||
var personInfo = new PersonInfo
|
var personInfo = new PersonInfo
|
||||||
{
|
{
|
||||||
|
|
|
@ -84,7 +84,7 @@ namespace Jellyfin.Plugin.MetaShark.Providers
|
||||||
|
|
||||||
result.Item = movie;
|
result.Item = movie;
|
||||||
result.HasMetadata = true;
|
result.HasMetadata = true;
|
||||||
subject.LimitDirectorCelebrities.Take(this.config.MaxCastMembers).ToList().ForEach(c => result.AddPerson(new PersonInfo
|
subject.LimitDirectorCelebrities.Take(Configuration.PluginConfiguration.MAX_CAST_MEMBERS).ToList().ForEach(c => result.AddPerson(new PersonInfo
|
||||||
{
|
{
|
||||||
Name = c.Name,
|
Name = c.Name,
|
||||||
Type = c.RoleType,
|
Type = c.RoleType,
|
||||||
|
|
|
@ -151,7 +151,7 @@ namespace Jellyfin.Plugin.MetaShark.Providers
|
||||||
result.Item = item;
|
result.Item = item;
|
||||||
result.QueriedById = true;
|
result.QueriedById = true;
|
||||||
result.HasMetadata = true;
|
result.HasMetadata = true;
|
||||||
subject.LimitDirectorCelebrities.Take(this.config.MaxCastMembers).ToList().ForEach(c => result.AddPerson(new PersonInfo
|
subject.LimitDirectorCelebrities.Take(Configuration.PluginConfiguration.MAX_CAST_MEMBERS).ToList().ForEach(c => result.AddPerson(new PersonInfo
|
||||||
{
|
{
|
||||||
Name = c.Name,
|
Name = c.Name,
|
||||||
Type = c.RoleType,
|
Type = c.RoleType,
|
||||||
|
@ -348,7 +348,7 @@ namespace Jellyfin.Plugin.MetaShark.Providers
|
||||||
// 演员
|
// 演员
|
||||||
if (seriesResult.Credits?.Cast != null)
|
if (seriesResult.Credits?.Cast != null)
|
||||||
{
|
{
|
||||||
foreach (var actor in seriesResult.Credits.Cast.OrderBy(a => a.Order).Take(this.config.MaxCastMembers))
|
foreach (var actor in seriesResult.Credits.Cast.OrderBy(a => a.Order).Take(Configuration.PluginConfiguration.MAX_CAST_MEMBERS))
|
||||||
{
|
{
|
||||||
var personInfo = new PersonInfo
|
var personInfo = new PersonInfo
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue