Kodi Community Forum
Solved Map Key to Tag - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Solved Map Key to Tag (/showthread.php?tid=378156)



Map Key to Tag - jrubenol - 2024-07-11

Hi All,

I am trying to map my remote to a specific TV Show tag that I use for my son. I have a remote with lots of extra buttons that I could map and my son is pretty young so a button to directly take him into his tv shows would be great. I've been searching and so far have come up empty. I've determined the key code but can't link it to a tag. Tried looking in the GUI Key Editor and couldn't find it in there. Here's the snip from my current keymap:

Code:
<keymap><global><keyboard><key id="61667">playlist</key><key id="61667">playerprogramselect</key></keyboard></global></keymap>



RE: Map Key to Tag - Karellen - 2024-07-11

A tricky one.

This is the action that will open the specific tag.
This example is for a keyboard action using keystrokes alt-z which opens tag ID #2..
<z mod="alt">ActivateWindow(Videos,videodb://movies/tags/2/,return)</z>

You need to open your MyVideos database, go to the tags table and look up the ID for the tag you want to open.
Replace the /2/ in my example with your ID.
Then add that to your keymap file surrounded by your button code (but don't include my alt-z tags).


RE: Map Key to Tag - jrubenol - 2024-07-11

(2024-07-11, 06:17)Karellen Wrote: A tricky one.

This is the action that will open the specific tag.
This example is for a keyboard action using keystrokes alt-z which opens tag ID #2..
<z mod="alt">ActivateWindow(Videos,videodb://movies/tags/2/,return)</z>

You need to open your MyVideos database, go to the tags table and look up the ID for the tag you want to open.
Replace the /2/ in my example with your ID.
Then add that to your keymap file surrounded by your button code (but don't include my alt-z tags).

First thank you. Second, getting a kind of bizarre possible bug.

I was able to identify the tag ID both via sql direct access to table as well as within Kodi itself (I set a submenu to access the same tag, from the skin settings I can see the tag ID fine.

Result:
When I access the TV SHOWS tag via Kodi submenu I see the title ("[SON'S NAME]") at the top of the resulting page and the screen is populated by the shows I've tagged as his.

When I access the TV SHOWS tag via the button, I see the same title at the top of the screen, but, it's showing 0 items.

Any ideas? Craziest thing as they're both clearly pointed to the same list.


RE: Map Key to Tag - jrubenol - 2024-07-11

(2024-07-11, 06:17)Karellen Wrote: A tricky one.

This is the action that will open the specific tag.
This example is for a keyboard action using keystrokes alt-z which opens tag ID #2..
<z mod="alt">ActivateWindow(Videos,videodb://movies/tags/2/,return)</z>

You need to open your MyVideos database, go to the tags table and look up the ID for the tag you want to open.
Replace the /2/ in my example with your ID.
Then add that to your keymap file surrounded by your button code (but don't include my alt-z tags).

Fixed with minor change - tag is a tvshow not a movie so had to change videodb://movies/tags/2/ to videodb://tvshows/tags/2/

Thanks. Cool assist and my kid will be stoked.


RE: Map Key to Tag - Anca - 2024-07-13

If you're not finding the right options in the GUI Key Editor, have you tried exploring any custom keymap add-ons?


RE: Map Key to Tag - jrubenol - 2024-07-14

(2024-07-13, 12:38)Anca Wrote: If you're not finding the right options in the GUI Key Editor, have you tried exploring any custom keymap add-ons?

I just followed the guidelines from Karellen and managed to get it working. I'm not a fan of installing a ton of addons as a general point. Would rather understand the underlying code and logic and just manually do the work.