From f39633d7c507c67fa6424a4c00e9db45b559ae46 Mon Sep 17 00:00:00 2001 From: redxef Date: Fri, 8 Nov 2024 22:41:24 +0100 Subject: [PATCH] feat: add is-type convenience definition. --- Jellyfin.Plugin.SmartPlaylist/PluginConfiguration.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.SmartPlaylist/PluginConfiguration.cs b/Jellyfin.Plugin.SmartPlaylist/PluginConfiguration.cs index 8334436..09473da 100644 --- a/Jellyfin.Plugin.SmartPlaylist/PluginConfiguration.cs +++ b/Jellyfin.Plugin.SmartPlaylist/PluginConfiguration.cs @@ -10,7 +10,7 @@ namespace Jellyfin.Plugin.SmartPlaylist { (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 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) """;