From 2fc2959110dc909987408804eec19293496e853e Mon Sep 17 00:00:00 2001 From: redxef Date: Tue, 17 Dec 2024 18:09:01 +0100 Subject: [PATCH] feat: add default find-artist definition. --- Jellyfin.Plugin.SmartPlaylist/PluginConfiguration.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.SmartPlaylist/PluginConfiguration.cs b/Jellyfin.Plugin.SmartPlaylist/PluginConfiguration.cs index a5802c1..0130c82 100644 --- a/Jellyfin.Plugin.SmartPlaylist/PluginConfiguration.cs +++ b/Jellyfin.Plugin.SmartPlaylist/PluginConfiguration.cs @@ -39,7 +39,8 @@ namespace Jellyfin.Plugin.SmartPlaylist { (define all-genres (lambda (want have) (all (lambda (x) (is-genre x have)) want))) (define any-genres (lambda (want have) (any (lambda (x) (is-genre x have)) want))) (define get-name (lambda (x) (car (getitems x "Name")))) - (define find-parent (lambda (typename) (invoke-generic item "FindParent" nil (list typename))))) + (define find-parent (lambda (typename) (invoke-generic item "FindParent" nil (list typename)))) + (define find-artist (lambda nil (find-parent "MediaBrowser.Controller.Entities.Audio.MusicArtist, MediaBrowser.Controller")))) """; } public string InitialProgram { get; set; }