From dcdee2403ce46e16dd03ba376cc0931e373716d7 Mon Sep 17 00:00:00 2001 From: redxef Date: Sun, 19 Jan 2025 15:26:44 +0100 Subject: [PATCH] Revert "feat: add collection or playlist choice to config page and dto." This reverts commit 457755d743c5e10afc22bfd00660e5fdb59dd52b. --- .../SmartPlaylistDto.cs | 8 ------- Jellyfin.Plugin.SmartPlaylist/configPage.html | 23 ------------------- 2 files changed, 31 deletions(-) diff --git a/Jellyfin.Plugin.SmartPlaylist/SmartPlaylistDto.cs b/Jellyfin.Plugin.SmartPlaylist/SmartPlaylistDto.cs index 3e914e3..5a2f41b 100644 --- a/Jellyfin.Plugin.SmartPlaylist/SmartPlaylistDto.cs +++ b/Jellyfin.Plugin.SmartPlaylist/SmartPlaylistDto.cs @@ -50,7 +50,6 @@ namespace Jellyfin.Plugin.SmartPlaylist { public string SortProgram { get; set; } public string? Filename { get; set; } public bool Enabled { get; set; } - public bool CollectionInsteadOfPlaylist { get; set; } public SmartPlaylistDto() { Id = ""; @@ -60,7 +59,6 @@ namespace Jellyfin.Plugin.SmartPlaylist { SortProgram = DEFAULT_SORT_PROGRAM; Filename = null; Enabled = true; - CollectionInsteadOfPlaylist = false; } protected SmartPlaylistDto(SerializationInfo info, StreamingContext context) { @@ -99,11 +97,6 @@ namespace Jellyfin.Plugin.SmartPlaylist { } else { Enabled = true; } - if (info.GetValue("CollectionInsteadOfPlaylist", typeof(bool)) is bool _CollectionInsteadOfPlaylist) { - Enabled = _CollectionInsteadOfPlaylist; - } else { - Enabled = true; - } } public void GetObjectData(SerializationInfo info, StreamingContext context) { @@ -113,7 +106,6 @@ namespace Jellyfin.Plugin.SmartPlaylist { info.AddValue("Program", Program); info.AddValue("Filename", Filename); info.AddValue("Enabled", Enabled); - info.AddValue("CollectionInsteadOfPlaylist", CollectionInsteadOfPlaylist); } } } diff --git a/Jellyfin.Plugin.SmartPlaylist/configPage.html b/Jellyfin.Plugin.SmartPlaylist/configPage.html index 36dce3b..cd597d2 100644 --- a/Jellyfin.Plugin.SmartPlaylist/configPage.html +++ b/Jellyfin.Plugin.SmartPlaylist/configPage.html @@ -44,19 +44,6 @@
Is the playlist enabled.
-
-
- Should a playlist or a collection be generated: -
- - -
-
- - -
-
-