• 1
  • 8
  • 9
  • 10(current)
  • 11
  • 12
  • 15
Release Embuary Helper Script
Submitted the most recent version to Kodi today. So every new and changed features should be available in the official Kodi repo soon.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
Hi, thanks for this awesome script! I'm getting used to its many options and I saw this one...

xml:
RunScript(script.embuary.helper,action=calc,do='"(10 + 5) / 2"',prop=MyResult)

...is it only for constant numbers? Or could it be used for something like:

xml:
RunScript(script.embuary.helper,action=calc,do='"Container(50).Position + 2"',prop=MyResult)

...and if the value of Position is 7, then it would return 9? 

Thanks!
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
Yes, but you have to add the $INFO[] to your container position.

And the calc stuff is only available on the GitHub repo atm.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
Thanks! It works like a charm, I think it has a lot of potential for skinning  Nod

One thing I have always missed in Kodi is a kind of "Sendkeys" function, I mean, to be able to mimic the press of a key (above all the arrow keys) using a kind of built-in function... Is there anything like that in Embuary Helper script?

Thanks again!
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
Why not use the builtin Action(action[,window]) function?
https://kodi.wiki/view/Action_IDs
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
(2019-07-31, 06:18)sualfred Wrote: Why not use the builtin Action(action[,window]) function?
https://kodi.wiki/view/Action_IDs

Yes, you're right... it seems that I skipped skinning class the day the teacher explained that function... Rofl

Thanks!
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
np ^^
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
I'm testing your function 'Parse own JSON calls to the script'... but, is it only for constant values? I mean, I'm trying to get a list of movies with the same year as the current one in a video view (container 595) and I'm trying with a list with this content:

xml:
<content>plugin://script.embuary.helper/?info=getbyargs&filter_args='"{"field": "year", "operator": "is", "value": $INFO[Container(595).ListItem.Year}"'&sort_args='"{"order": "ascending", "method": "title"}"'&type=movie</content>

I've tried with several syntax but it doesn't work...

Thanks!
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
@manfeed 

Code:

plugin://script.embuary.helper/?info=getbyargs&amp;filter_args='"{"field": "year", "operator": "is", "value": "$INFO[Container(595).ListItem.Year]"}"'&amp;sort_args='"{"order": "ascending", "method": "title"}"'&amp;type=movie

Year is a string so it has to be wrapped in " ". And you have missed the closing bracket.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
Thanks! It's great! Please, how could I prevent the current movie from showing in the list? I know that I should add another condition, but I don´t know how... I'm trying with:

xml:
plugin://script.embuary.helper/?info=getbyargs&amp;filter_args='"{"field": "year", "operator": "is", "value": "$INFO[Container(595).ListItem.Year]" & "field": "title", "operator": "isnot", "value": "$INFO[Container(595).ListItem.Title]"}"'&amp;sort_args='"{"order": "ascending", "method": "title"}"'&amp;type=movie

but it doesn't work...
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
That's not a valid syntax.

Code:

plugin://script.embuary.helper/?info=getbyargs&amp;filter_args='"{"and": [{"field": "year", "operator": "is", "value": "$INFO[Container(595).ListItem.Year]"}, {"field": "title", "operator": "isnot", "value": "$INFO[Container(595).ListItem.Title]"}]}"'&amp;sort_args='"{"order": "ascending", "method": "title"}"'&amp;type=movie

Simple syntax example:

Code:

{"and": [{},{}]}

A more omplex syntax example

Code:

 {"and": [{"or": [{"operator": "is", "field": "year", "value": "2018"}, {"operator": "is", "field": "year", "value": "2019"}]}, {"operator": "isnot", "field": "title", "value": "Alita"}]}

translated = if year is 2018 or 2019 and title is Alita
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
@sualfred 
Sorry to be such a pest... You're my hero! Thanks indeed!
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
No problem. Once you know how it works it's easy.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
@sualfred 
Still playing around with some of your helper functions (& of course study the skinning manual)

Is there any chance to achieve this with a helper? Very useful but Kodi 19 Matrix exclusive... still some years away.
Current workaround to achieve similar is really dirty.

Image
Reply
@sualfred  I've found a couple of errors in the blur function, I've raised an issue on your github, but I'll post it here as.

resources/lib/image.py
Line 70
Code:
if os.path.isfile(xbmc_cache_file):
Line 73
Code:
elif os.path.isfile(xbmc_vid_cache_file):

These two line will always fail due to the fact that you are checking a special path using an os path function.

Either add the translate function:
Code:
if os.path.isfile(xbmc.translatePath(xbmc_cache_file)):

Or use the xbmcvfs functions:
Code:
if xbmcvfs.exists(xbmc_cache_file):

I noticed it when trying to blur embedded album artwork Smile
Reply
  • 1
  • 8
  • 9
  • 10(current)
  • 11
  • 12
  • 15

Logout Mark Read Team Forum Stats Members Help
Embuary Helper Script3