feat: add all-genres and any-genres convenience definitions.
This commit is contained in:
parent
52b270a8d8
commit
05742dd17c
1 changed files with 3 additions and 1 deletions
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue