diff --git a/Jellyfin.Plugin.SmartPlaylist/Lisp/Expression.cs b/Jellyfin.Plugin.SmartPlaylist/Lisp/Expression.cs index 7becb79..3cc1584 100644 --- a/Jellyfin.Plugin.SmartPlaylist/Lisp/Expression.cs +++ b/Jellyfin.Plugin.SmartPlaylist/Lisp/Expression.cs @@ -248,7 +248,7 @@ namespace Jellyfin.Plugin.SmartPlaylist.Lisp { } public class Object : Scalar { - public Object(object value) : base(value) { } + internal Object(object value) : base(value) {} public static Expression FromBase(object? o) { if (o == null) { return Boolean.FALSE; diff --git a/Tests/Tests.cs b/Tests/Tests.cs index 9c1b598..264deb7 100644 --- a/Tests/Tests.cs +++ b/Tests/Tests.cs @@ -195,7 +195,7 @@ namespace Tests public static void ObjectTest() { Executor e = new Executor(); Expression r; - e.environment.Set("o", new Lisp_Object(new O(5, false))); + e.environment.Set("o", Lisp_Object.FromBase(new O(5, false))); r = e.eval("""(haskeys o "i" "b")"""); Assert.True(((Lisp_Boolean)r).Value()); r = e.eval("""(getitems o "i" "b")""");