using MediaBrowser.Model.Plugins;
using System.Reflection;
namespace Jellyfin.Plugin.MetaShark.Configuration;
///
/// Plugin configuration.
///
public class PluginConfiguration : BasePluginConfiguration
{
public const int MAX_CAST_MEMBERS = 15;
public const int MAX_SEARCH_RESULT = 5;
public string Version { get; } = Assembly.GetExecutingAssembly().GetName().Version?.ToString() ?? string.Empty;
public string DoubanCookies { get; set; } = string.Empty;
///
/// 豆瓣开启防封禁
///
public bool EnableDoubanAvoidRiskControl { get; set; } = false;
///
/// 豆瓣背景图使用原图
///
public bool EnableDoubanBackdropRaw { get; set; } = false;
///
/// 豆瓣图片代理地址
///
public string DoubanImageProxyBaseUrl { get; set; } = string.Empty;
public bool EnableTmdb { get; set; } = true;
public bool EnableTmdbSearch { get; set; } = false;
public bool EnableTmdbBackdrop { get; set; } = false;
///
/// 是否获取电影系列信息
///
public bool EnableTmdbCollection { get; set; } = false;
///
/// 是否获取tmdb分级信息
///
public bool EnableTmdbOfficialRating { get; set; } = false;
public string TmdbApiKey { get; set; } = string.Empty;
public string TmdbHost { get; set; } = string.Empty;
public int MaxCastMembers { get; set; } = 15;
public int MaxSearchResult { get; set; } = 5;
}