Kodi Community Forum
Video Library Filter - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+--- Thread: Video Library Filter (/showthread.php?tid=205485)



Video Library Filter - bighead85 - 2014-09-30

Hi All,
I am struggling with a rather specific task with a skin. When in the video library there is the filter in side menu, it looks like a toggle and that is exactly what i want it to do.
I want Toggle on = filter is genre/26 (family) in both TV and Movie
Toggle off = filter is not genre/26 (family) in both TV and Movie.

Purpose is to stop having to switch profiles to see my movies etc or my kids.

When i add link as favourite it uses ActivateWindow(10025,"videodb://movies/genres/26/",return) which is great as I could use the visible tag to set one for TV and one for Movie and only show one depending on what user is looking at.
But when i include this in <onclick> it does not work. (as a favourite link no worries)

I think it could work similar to Watched/unwatched toggle but i know that is a Kodi function the skin can utilise.

Any help would be great, thank you


RE: Video Library Filter - MassIV - 2014-10-03

Think you are looking for smart playlists. Then you can add those to main menu.

http://wiki.xbmc.org/?title=Smart_playlists#Smart_playlist_for_video

You can also try nodes

http://wiki.xbmc.org/index.php?title=Video_nodes


RE: Video Library Filter - bighead85 - 2014-10-03

I am currently using smart playlists, the downside is it gives me four links;
Kids Movies
Kids TV
Movies
TV Shows

Will explore nodes and see if i can do something with them, as i said before my perfect solution would be a toggle like the unwatched, nodes may be able to get me there.

Thanks for pointing me in the right direction.


RE: Video Library Filter - MassIV - 2014-10-03

If you want to hide buttons while in library you can do that based on partial path.

<visible>Substring(Container.FolderPath,video/Kids)</visible>

But that won't hide them in main menu.