Code Monkey home page Code Monkey logo

Comments (5)

AnthonyMusgrove avatar AnthonyMusgrove commented on June 13, 2024

We just need to confirm what type of dummy data it should use - should I create dummy data that would suit each event?

like dummy_data_onPlaybackStart = (movie = ScripterX Test Movie, etc) or should it just interpret the tokens and pass their name to your script, ie %item.name% would change to ItemName, so we know its been validated, or ItemName.Validated, or?

Thanks mate :)

from emby-scripterx.

Penkethboy avatar Penkethboy commented on June 13, 2024

Basically i see this as testing i have typed in everything ok and ScripterX is happy with it

I.e. if i type %item.Name% (as we are case sensitive) then it should Fail in some why so its obvious in the what ScripterX returns - and if happy %item.name% -> item.name say would be fine.

from emby-scripterx.

ginjaninja1 avatar ginjaninja1 commented on June 13, 2024

For Media Events especially it would be helpful for plugin to retrieve and be able to use some test data. I am thinking the test button would fire event (call script with parameters) for a particular ID.
And a page in ui would help user find an id (eg 1st one) in database of chosen type (episode,season,series,Audio,MusicAlbum,Movie, Folder) and use that ID on the test button for media events.

from emby-scripterx.

Penkethboy avatar Penkethboy commented on June 13, 2024

to be honest - i only wanted this to test the %variables% - if they are valid - too keep it simple - as they are not case sensitive anymore - it just comes down to spelling.

Adding in getting data from emby adds a level of complexity that not sure from my perspective would be needed - as you could add a "hard coded" ID to the parameters line - and test that once the test button is added.

from emby-scripterx.

ginjaninja1 avatar ginjaninja1 commented on June 13, 2024

from my perspective, as i am developing a script and testing it, i have to keep removing and readding stuff from my library to get events to fire. A useful test for me in this case would be an onmediaitemadded event for a particular object, without me changing the parameters or my script to support the test. ie quickly test a series add, season add, episode add. not a big deal as i can do manual changes to the filesystem to achieve this too.
edit
i guess for media item events it might be important that the disk situation matches the event situation, so perhaps virtual tests are not so great

from emby-scripterx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.