2020-03-24, 02:51
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:
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?
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?