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

When using web:get, Call variables directly in URL #57

Closed fkueyu closed 2 years ago

fkueyu commented 2 years ago

When using Web: get, can I use existing variables in URLs? If so, how can I call it? If not, consider adding this feature?

jasonhorga commented 2 years ago

need to know about this

AnthonyMusgrove commented 2 years ago

Hi guys, let me check this one out, sounds like a great idea which I am absolutely keen to implement for you.

AnthonyMusgrove commented 2 years ago

image

So for example, using WEB:GET, the URL to 'get' is stored in the 'script' field, and now supports tokens being used, ie https://myurl.com/?action=play&userid=%user.id%&itemid=%item.id% for example, will produce something like https://myurl.com/?action=play&userid=anthony&itemid=6992

This is at the request of @fkueyu on GitHub

So as of 4.0.0.3 this will be available, and all new releases of ScripterX require the Beta version of Emby (4.7.35+) to be installed otherwise ScripterX new releases will not function properly (if at all).

fkueyu commented 2 years ago

Great, thank you

fkueyu commented 2 years ago

微信截图_20220519111934

@AnthonyMusgrove request Run text box newline support