44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using MediaBrowser.Model.Plugins;
|
|
using System.Net;
|
|
using System.Reflection;
|
|
|
|
namespace Jellyfin.Plugin.MetaShark.Configuration;
|
|
|
|
/// <summary>
|
|
/// The configuration options.
|
|
/// </summary>
|
|
public enum SomeOptions
|
|
{
|
|
/// <summary>
|
|
/// Option one.
|
|
/// </summary>
|
|
OneOption,
|
|
|
|
/// <summary>
|
|
/// Second option.
|
|
/// </summary>
|
|
AnotherOption
|
|
}
|
|
|
|
/// <summary>
|
|
/// Plugin configuration.
|
|
/// </summary>
|
|
public class PluginConfiguration : BasePluginConfiguration
|
|
{
|
|
public string Version { get; } = Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
|
|
|
public string Pattern { get; set; } = @"(S\d{2}|E\d{2}|HDR|\d{3,4}p|WEBRip|WEB|YIFY|BrRip|BluRay|H265|H264|x264|AAC\.\d\.\d|AAC|HDTV|mkv|mp4)|(\[.*\])|(\-\w+|\{.*\}|【.*】|\(.*\)|\d+MB)|(\.|\-)";
|
|
|
|
public bool EnableTmdb { get; set; } = true;
|
|
public string TmdbApiKey { get; set; } = string.Empty;
|
|
|
|
public string DoubanCookies { get; set; } = string.Empty;
|
|
|
|
public int MaxCastMembers { get; set; } = 15;
|
|
|
|
public int MaxSearchResult { get; set; } = 3;
|
|
|
|
|
|
|
|
}
|