Thread Rating:
  • 0 Vote(s) - 0 Average
what is the name of root level?
#1
Sad 
Here in following url:
http://wiki.xbmc.org/index.php?title=XBM...Conditions

In 4th row there is a method called "Container.Content(parameter)"
which
Returns true if the current container you are in contains the following: files, songs, artists, albums, movies, tvshows, seasons, episodes, musicvideos, genres, years, actors, playlists, plugins, studios, directors....

But I don't know the name of parameter , so I can not pass that to get true or false.
instead I want to know the parameter/text/name (ex: files / songs /artists / albums etc) which the current container is containing.
how it can be done?

when you click on ".." in any window which is displaying songs or artists or albums , that takes you to the immediate parent list , now again click on ".." in that list to go one list above the current list.
This way you reach at one root level which does not display ".." entry , and displays icon of artists , albums , songs etc.
what is the name of this level?

Container.Content(what to pass here)
that it will return true when you are at this top level.

Thanks for Help.
Reply
#2
simply container.content() , without anything in brackets.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#3
Hi, phil65 Thanks for reply, but that is not working.

Container.FolderName seems to be helpful but it's name does not sound much reliable.
also for root level it does not return anything or may be empty string.


Reply
#4
IsEmpty(Container.FolderPath) indicates if you're on root level or not.
Image
Reply
#5
Thanks `Black !!
Reply
#6
? I´m using Container.Content() and it works perfectly.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#7
oh , I think I should try it again !!
Reply



what is the name of root level?00