AnthonyMusgrove / Emby-ScripterX

Run custom external application or script (batch/bash/powershell/php/python/node.js/custom) on various events within the Emby Server.
https://emby-scripterx.com
78 stars 6 forks source link

Missing dependencies #55

Open mobstef opened 2 years ago

mobstef commented 2 years ago

Description The plugin requires, but does not install the following dependencies:

Symptoms

2022-02-16 10:07:27.060 Error App: Error in IsExportType Error Report Version: 4.6.7.0 Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby Operating system: Unix 13.0.6.0 Framework: Mono: 6.8.0.123 (tarball Sat Nov 27 03:01:30 UTC 2021) OS/Process: X64/X64 Runtime: usr/local/lib/mono/4.5/mscorlib.dll Processor count: 6 Data path: /var/db/emby-server Application path: /usr/local/lib/emby-server/system System.TypeLoadException: System.TypeLoadException: Could not load type of field 'EmbyScripterX.Packages.Package:packageEngine' (11) due to: Could not load file or assembly 'Jint, Version=0.0.0.0, Cu at (wrapper managed-to-native) System.RuntimeTypeHandle.type_is_assignable_from(System.Type,System.Type) at System.RuntimeTypeHandle.CanCastTo (System.RuntimeType type, System.RuntimeType target) [0x00000] in <0e6cb1433c7b46f598f86593dd03f528>:0 at System.RuntimeType.IsAssignableFrom (System.Type c) [0x00020] in <0e6cb1433c7b46f598f86593dd03f528>:0 at Emby.Server.Implementations.ApplicationHost.IsExportType (System.Type currentType, System.Tuple`2[T1,T2] i) [0x00007] in <0914aad53d214f5093d6e8aa4f5ba4c1>:0 Source: TargetSite:

Workaround I've manually installed the dependencies in Emby's plugin folder and everything works fine. I've downloaded the packages from https://www.nuget.org/packages/.

Expected behavior The plugin should contain and install all required dependencies.

Desktop:

AnthonyMusgrove commented 2 years ago

Hi @mobstef , thankyou for the issue report. These dependencies should have been automatically included in the package (they're embedded inside the DLL), I'll do a little bit of research and testing into this one for you.