From 78d04e140abbacbe1af41832d23ae115a609987d Mon Sep 17 00:00:00 2001 From: DirtyRacer Date: Wed, 6 Nov 2024 23:01:26 +0700 Subject: [PATCH] add colletion filter by scene type --- .../Configuration/PluginConfiguration.cs | 12 ++++++++++++ .../Configuration/configPage.html | 11 +++++++++++ .../ScheduledTasks/AddCollection.cs | 8 ++++++++ 3 files changed, 31 insertions(+) diff --git a/Jellyfin.Plugin.ThePornDB/Configuration/PluginConfiguration.cs b/Jellyfin.Plugin.ThePornDB/Configuration/PluginConfiguration.cs index 7ee06f5..d543d3a 100644 --- a/Jellyfin.Plugin.ThePornDB/Configuration/PluginConfiguration.cs +++ b/Jellyfin.Plugin.ThePornDB/Configuration/PluginConfiguration.cs @@ -19,6 +19,14 @@ public enum TagStyle Disabled = 2, } + public enum CollectionType + { + Scene = 0, + Movie = 1, + JAV = 2, + All = 3, + } + public enum StudioStyle { Site = 0, @@ -74,6 +82,8 @@ public PluginConfiguration() this.CollectionMinSize = 0; this.AddCollectionToCollections = true; + this.CollectionType = CollectionType.All; + this.StudioStyle = StudioStyle.All; this.UseCustomTitle = false; @@ -113,6 +123,8 @@ public PluginConfiguration() public bool AddCollectionToCollections { get; set; } + public CollectionType CollectionType { get; set; } + public StudioStyle StudioStyle { get; set; } public bool UseCustomTitle { get; set; } diff --git a/Jellyfin.Plugin.ThePornDB/Configuration/configPage.html b/Jellyfin.Plugin.ThePornDB/Configuration/configPage.html index eaf840f..e39e978 100644 --- a/Jellyfin.Plugin.ThePornDB/Configuration/configPage.html +++ b/Jellyfin.Plugin.ThePornDB/Configuration/configPage.html @@ -56,6 +56,15 @@

ThePornDB

Add Collection to Collections +
+ + +