feat: add all-genres and any-genres convenience definitions.

This commit is contained in:
redxef 2024-11-24 22:42:44 +01:00
parent 52b270a8d8
commit 05742dd17c
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -35,7 +35,9 @@ namespace Jellyfin.Plugin.SmartPlaylist {
(define name-contains
(lambda (x)
(invoke (lower (car (getitems item "Name"))) "Contains" (list (lower x)))))
(define is-favourite is-favorite))
(define is-favourite is-favorite)
(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))))
""";
}
public string InitialProgram { get; set; }