From 18136e0fa60b3a0b00e9878a40c746a367171b45 Mon Sep 17 00:00:00 2001 From: redxef Date: Tue, 17 Dec 2024 18:02:09 +0100 Subject: [PATCH] feat: make it easier to find the correct assembly. --- 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 2b8b75f..df40feb 100644 --- a/Jellyfin.Plugin.SmartPlaylist/Lisp/Interpreter.cs +++ b/Jellyfin.Plugin.SmartPlaylist/Lisp/Interpreter.cs @@ -263,7 +263,7 @@ namespace Jellyfin.Plugin.SmartPlaylist.Lisp { private static Type? GetType(string name) { return Type.GetType( name, - (name) => { return AppDomain.CurrentDomain.GetAssemblies().Where(z => z.FullName == name.FullName).FirstOrDefault(); }, + (name) => { return AppDomain.CurrentDomain.GetAssemblies().Where(z => (z.FullName != null) && z.FullName.StartsWith(name.FullName)).FirstOrDefault(); }, null, true );