fix: search only for json files.

This commit is contained in:
redxef 2024-10-28 00:25:30 +01:00
parent 512716e357
commit 8a81cdbd8b
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -22,7 +22,7 @@ namespace Jellyfin.Plugin.SmartPlaylist {
return Directory.GetFiles(StoragePath, $"{smartPlaylistId}.json", SearchOption.AllDirectories).First(); return Directory.GetFiles(StoragePath, $"{smartPlaylistId}.json", SearchOption.AllDirectories).First();
} }
public string[] FindAllSmartPlaylistFilePaths() { public string[] FindAllSmartPlaylistFilePaths() {
return Directory.GetFiles(StoragePath); return Directory.GetFiles(StoragePath, "*.json", SearchOption.AllDirectories);
} }
} }
} }