Req Navigate to letter in playlist via JSON? Any new way to achieve this?
#1
I know this has been up from time to time, but I noted some text in the lates 18.9 Leia release
that made me try to revisit this over the holidays as I have some time on my hands.
it looks like this feature will be in V12 of the API and V19.xx Matrix with the 5.7.2 Input.ButtonEvent ?

Have been wanting to do this for years but never got around to it.
Is there any current way under Leia 18.xx to send Shift+Letter via a JSON command?
I simply want to jump to letter in large libraries. Anyone? If not I'll wait and hope for v19 Matrix Wink
Many thanks and best wishes for 2021!
Reply
#2
Has anyone been able to use a JSON command to go to letter in a list yet?
As I understood it, it might make the Matrix API..
Many thanks!
Reply
#3
Hello,

Just a final stab at this, as I would really like to add this to my iRule client before their servers go dark soon.
I would like to send a JSON string that is the equivalent of shift-letter to go the corresponding letter in long lists in Kodi.

I am trying to use the 5.7.2 Input.ButtonEvent from this page:
https://kodi.wiki/view/JSON-RPC_API/v12#...uttonEvent
and this:
https://kodi.wiki/view/Keymap#Keyboards

By probably making up a keymap.xml for all letters shift-a, shift-b etc. and then assigning a JSON command to each.
Can this be done?

Many thanks for any helpful comments or examples on formatting.
Reply
#4
Hm.. Did you consider using the built-in action   'JumpSMS' <2-9>Jump through a list using SMS-style input (eg press 2 twice to jump to the B's.) - https://kodi.wiki/view/Action_IDs

Input.ExecuteAction -> input.action

labels / numbers will skipped if no item exist in lib
        sms2 - a,b,c,2
        sms3 - d,e,f,3
        sms4 - g,h,i,4
        sms5 - j,k,l,5
        sms6 - m,n,o,6
        sms7 - p,q,r,s,7
        sms8 - t,u,v,8
        sms9 - x,y,z,9

Or build your keymap for the Input.ButtonEvent
e.g.
xml:
<keymap>
    <global>
        <keyboard>
          ...
            
            <numpadtwo>jumpSMS2</numpadtwo>
            <numpadthree>jumpSMS3</numpadthree>
            <numpadfour>jumpSMS4</numpadfour>
            <numpadfive>jumpSMS5</numpadfive>
            <numpadsix>jumpSMS6</numpadsix>
            <numpadseven>jumpSMS7</numpadseven>
            <numpadeight>jumpSMS8</numpadeight>
            <numpadnine>jumpSMS9</numpadnine>
        </keyboard>
    </global>
</keymap>
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#5
(2022-08-13, 19:52)mardukL Wrote: Hm.. Did you consider using the built-in action   'JumpSMS' <2-9>Jump through a list using SMS-style input (eg press 2 twice to jump to the B's.) - https://kodi.wiki/view/Action_IDs


Dear @mardukL 
Apologies for late feedback to your kind reply. Missed the notification at the time for some reason.
Anyway. This was pretty much exactly what I wanted. Up and running with your suggestion and very, very happy. Kudos!!
Reply

Logout Mark Read Team Forum Stats Members Help
Navigate to letter in playlist via JSON? Any new way to achieve this?0