From 8a81cdbd8b02439f012ec0bd5a8343d4c665621b Mon Sep 17 00:00:00 2001 From: redxef Date: Mon, 28 Oct 2024 00:25:30 +0100 Subject: [PATCH] fix: search only for json files. --- Jellyfin.Plugin.SmartPlaylist/SmartPlaylistFileSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.SmartPlaylist/SmartPlaylistFileSystem.cs b/Jellyfin.Plugin.SmartPlaylist/SmartPlaylistFileSystem.cs index 27a88fa..f538709 100644 --- a/Jellyfin.Plugin.SmartPlaylist/SmartPlaylistFileSystem.cs +++ b/Jellyfin.Plugin.SmartPlaylist/SmartPlaylistFileSystem.cs @@ -22,7 +22,7 @@ namespace Jellyfin.Plugin.SmartPlaylist { return Directory.GetFiles(StoragePath, $"{smartPlaylistId}.json", SearchOption.AllDirectories).First(); } public string[] FindAllSmartPlaylistFilePaths() { - return Directory.GetFiles(StoragePath); + return Directory.GetFiles(StoragePath, "*.json", SearchOption.AllDirectories); } } }