Emby ScripterX: Tried to invoke function '_onMediaItemUpdated' on package with installationId 'b6956024-5963-4cb5-af49-0a74073abf6b' (function not implemented)
Package.js file
function _onMediaItemUpdated(context) {
ScripterX.Log.Info("TEST - ID " + context.Token("%item.id%").value + " using original title " + context.Token("%item.originaltitle%").value + " with IMDB " + context.Token("%item.meta.imdb%").value );
fetch(`https://api.allorigins.win/get?url=${encodeURIComponent('https://domain.com')}`).then(function(response){
if (response.ok) return response.json()
throw new Error('Network response was not ok.')
}).then(function(data){
ScripterX.Log.Info(data.contents);
});
ScripterX.Web.Get( ? )
// I need download webpage (wihout CORS, but I can use https://api.allorigins.win/get?url=${encodeURIComponent('https://domain.com')
}
Emby ScripterX: Tried to invoke function '_onMediaItemUpdated' on package with installationId 'b6956024-5963-4cb5-af49-0a74073abf6b' (function not implemented)