From 7bf2923ad147ce24360bbccf9b73674d0738d037 Mon Sep 17 00:00:00 2001 From: redxef Date: Fri, 8 Nov 2024 22:39:56 +0100 Subject: [PATCH] fix: allow all types to call "haskeys". --- Jellyfin.Plugin.SmartPlaylist/Lisp/Interpreter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.SmartPlaylist/Lisp/Interpreter.cs b/Jellyfin.Plugin.SmartPlaylist/Lisp/Interpreter.cs index 1a1211d..7ad36c0 100644 --- a/Jellyfin.Plugin.SmartPlaylist/Lisp/Interpreter.cs +++ b/Jellyfin.Plugin.SmartPlaylist/Lisp/Interpreter.cs @@ -141,7 +141,7 @@ namespace Jellyfin.Plugin.SmartPlaylist.Lisp { return args.Last(); } private static Expression _haskeys(IEnumerable args) { - Object o = (Object) args.First(); + Object o = new Object(((IInner) args.First()).Inner()); foreach (var e in args.Skip(1)) { String s = (String) e; PropertyInfo? pi = o.Value().GetType().GetProperty(s.Value());