feat: add default find-artist definition.

This commit is contained in:
redxef 2024-12-17 18:09:01 +01:00
parent e180b397c6
commit 2fc2959110
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -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; }