Comments (5)
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.
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.
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.
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.
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)
- Help getting script to run
- Could you add the event of Playback Error? HOT 2
- Missing dependencies HOT 1
- About emby running sh scripts HOT 6
- When using web:get, Call variables directly in URL HOT 5
- onLiveTVRecordingEnded event not triggering after recording stops HOT 1
- onPlaybackStart event does not pass Tuner instance if %item.type% is LiveTvChannel HOT 2
- LiveTV Rewire HOT 2
- %item.library.name% cannot be substituted when it is in Chinese HOT 6
- WEB:POST Json Data is not escaped/safe json encoded values HOT 1
- scripts in emby4.7.2 can not work bug
- Qnap - Scripter-X 4.0.0.8 on Emby 4.8.0.1 not working anymore for .sh scripts HOT 1
- Better Documentation HOT 1
- Error is triggered when %var...% contains apostrophe
- The script passes the movie parameters repeatedly
- How can i run a python script using it HOT 1
- ScripterX package - onMediaItemUpdated not working?
- FR: Marked played event, tags and calls
- Error UserDataManager: Error in event handler
- Photo seen or 'watched' not possible?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emby-scripterx.