feat: make it easier to find the correct assembly.

This commit is contained in:
redxef 2024-12-17 18:02:09 +01:00
parent 6d62f6eeb0
commit 18136e0fa6
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -263,7 +263,7 @@ namespace Jellyfin.Plugin.SmartPlaylist.Lisp {
private static Type? GetType(string name) { private static Type? GetType(string name) {
return Type.GetType( return Type.GetType(
name, 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, null,
true true
); );