using MediaBrowser.Model.Plugins; namespace Jellyfin.Plugin.RedditComments.Configuration; /// /// Plugin configuration. /// public class PluginConfiguration : BasePluginConfiguration { /// /// Initializes a new instance of the class. /// public PluginConfiguration() { RedditClientId = string.Empty; RedditClientSecret = string.Empty; RedditUserAgent = "linux:jellyfin-plugin-reddit-comments:v1.0.0 (by /u/unknown)"; Subreddits = "anime"; CacheDays = 30; NotFoundCacheHours = 24; MaxRequestsPerMinute = 60; MaxComments = 150; CommentDepth = 8; MinScore = 1; } /// /// Gets or sets the Reddit app client id (create a "script" app at https://www.reddit.com/prefs/apps). /// public string RedditClientId { get; set; } /// /// Gets or sets the Reddit app client secret. /// public string RedditClientSecret { get; set; } /// /// Gets or sets the User-Agent sent to Reddit. Reddit requires a unique, descriptive value. /// public string RedditUserAgent { get; set; } /// /// Gets or sets the comma-separated list of subreddits to search, in order (without the r/ prefix). /// public string Subreddits { get; set; } /// /// Gets or sets how many days a found thread is cached before it is fetched again. /// public int CacheDays { get; set; } /// /// Gets or sets how many hours a "no thread found" result is cached. /// public int NotFoundCacheHours { get; set; } /// /// Gets or sets the maximum number of Reddit API requests per minute (Reddit's own limit is 100). /// public int MaxRequestsPerMinute { get; set; } /// /// Gets or sets the maximum number of comments requested from Reddit per thread. /// public int MaxComments { get; set; } /// /// Gets or sets the maximum reply depth requested from Reddit. /// public int CommentDepth { get; set; } /// /// Gets or sets the minimum score a comment must have to be shown. /// public int MinScore { get; set; } }