feat: add is-type convenience definition.
This commit is contained in:
parent
b23587d721
commit
f39633d7c5
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ namespace Jellyfin.Plugin.SmartPlaylist {
|
||||||
(define is-genre-exact (lambda (g g-list) (find g g-list)))
|
(define is-genre-exact (lambda (g g-list) (find g g-list)))
|
||||||
(define genre-list (lambda nil (let (_g (getitems item "Genres")) (if (null _g) nil (car _g)))))
|
(define genre-list (lambda nil (let (_g (getitems item "Genres")) (if (null _g) nil (car _g)))))
|
||||||
(define is-favorite (lambda nil (invoke item "IsFavoriteOrLiked" (list user)))))
|
(define is-favorite (lambda nil (invoke item "IsFavoriteOrLiked" (list user)))))
|
||||||
|
(define is-type (lambda (x) (and (haskeys item "GetClientTypeName") (invoke (invoke item "GetClientTypeName" nil) "Equals" (list x)))))
|
||||||
|
|
||||||
(define is-favourite is-favorite)
|
(define is-favourite is-favorite)
|
||||||
""";
|
""";
|
||||||
|
|
Loading…
Reference in a new issue