Checking if MyVideoNav is in Files mode?
#1
Hi,

Does anyone know of a way to check if MyVideoNav/MyMusicNav is in files mode?

Kodi doesn't set Container.Content(files) if the source has a content type set (even though it is being browsed through files mode) - instead, it sets Container.Content to whatever the source content type is.

Currently I'm using:
Code:
!String.StartsWith(Container.FolderPath,videodb://) + !String.StartsWith(Container.FolderPath,musicdb://) + !String.StartsWith(Container.FolderPath,plugin://)

That feels really clunky though. I feel like there should be a single Boolean to check if in files mode (really I think content type should be set to files when in files mode regardless of whether a content type was set for the source but that is a different discussion to be had).

Does anyone have any suggestions of a better method?
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply


Messages In This Thread
Checking if MyVideoNav is in Files mode? - by jurialmunkey - 2020-03-24, 02:51
Logout Mark Read Team Forum Stats Members Help
Checking if MyVideoNav is in Files mode?0