Kodi Community Forum
Action ID for "hide watched"? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Feature Discussion (read-only) (https://forum.kodi.tv/forumdisplay.php?fid=183)
+--- Thread: Action ID for "hide watched"? (/showthread.php?tid=235402)



Action ID for "hide watched"? - Ned Scott - 2015-08-15

All I want for Christmas this year is a way to toggle the "Hide watched" filter from a remote button ;)

Not to be confused with the existing action ID, "ToggleWatched", which toggles the watched state on a selected video/directory/show. Rather, I'm talking about the hiding of watched videos that is normally in the sidebar menu. On the skin I'm currently using (Amber) it takes nearly 10 button presses to go over to the sidebar and then scroll down and select the watched filter. Having it possibly be an action will allow all users (regardless of skin) to more conveniently use it as an on-the-fly filter.

Many beers and cheers await the one who can make this happen or point me to an existing solution that I overlooked ;)


RE: Action ID for "hide watched"? - ronie - 2015-08-17

hide watched is a built-in button control, with id="14".
kodi allows you to send a 'click' to a button using the sendclick() action.
so what you're looking for is:
Code:
sendclick(14)

this will work in any skin, regardless whether they have this button on the side menu or not.


RE: Action ID for "hide watched"? - Ned Scott - 2015-08-17

Thanks ronie :D


RE: Action ID for "hide watched"? - wsnipex - 2015-08-17

heh, thats very intuitive Tongue


RE: Action ID for "hide watched"? - ronie - 2015-08-17

don't shoot the messenger. i didn't write this software ;-p