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
76 stars 6 forks source link

Unable to install package #31

Closed Slugger closed 4 years ago

Slugger commented 4 years ago

Describe the bug Created a basic test package, in a newly built dev env (fresh docker install, latest docker, no media, separate from my prod server, etc., latest ScripterX installed).

To Reproduce Steps to reproduce the behavior:

  1. Install latest Emby docker
  2. Install latest ScripterX
  3. Create a basic package following wiki instructions
  4. Attempt to install package zip

Expected behavior Uploaded package zip is installed and deployed

Screenshots image

Desktop (please complete the following information):

Smartphone (please complete the following information): n/a

Server Details

Additional context After the error is reported back, I can go into the docker and go to the directory it shows in the error message and it exists and my zip file has been exploded there. I can see my json and js files sitting there. So the zip was accepted and unzipped on the server, but then I get the error shown.

AnthonyMusgrove commented 4 years ago

Thank you mate, I'll check this out now and see if its just a permissions or path issue with docker

AnthonyMusgrove commented 4 years ago

Thank you so much for reporting this issue. It was an issue on my end. Now rectified in v3.0.3.4 (now up on Emby Catalog), please update and this issue will be resolved :)

Slugger commented 4 years ago

Ok, got past this problem, but my event handler isn't being called. I'll open another ticket for that shortly. I was also going to open a ticket to discuss how I might get package settings into my package. But when I got the package installed it looks like you've already thought of this. There is a settings icon for my package and when I click I get told that my package doesn't have a config interface. Indeed it doesn't. I didn't see any mention of that in the packages wiki. So... how do I create a config interface for my package? And how do I access that config in my js? :)