what is the name of root level?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
slinuxgeek Offline
Senior Member
Posts: 219
Joined: Feb 2012
Reputation: 0
Sad  what is the name of root level?
Post: #1
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.
find quote
phil65 Offline
Skilled Skinner
Posts: 4,700
Joined: Mar 2009
Reputation: 64
Location: Cologne, Germany
Post: #2
simply container.content() , without anything in brackets.
find quote
slinuxgeek Offline
Senior Member
Posts: 219
Joined: Feb 2012
Reputation: 0
Post: #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.
find quote
`Black Offline
Team-Kodi Member
Posts: 2,436
Joined: Apr 2009
Reputation: 72
Location: Germany
Post: #4
IsEmpty(Container.FolderPath) indicates if you're on root level or not.

[Image: xp1080-21.png]
find quote
slinuxgeek Offline
Senior Member
Posts: 219
Joined: Feb 2012
Reputation: 0
Post: #5
Thanks `Black !!
find quote
phil65 Offline
Skilled Skinner
Posts: 4,700
Joined: Mar 2009
Reputation: 64
Location: Cologne, Germany
Post: #6
? I´m using Container.Content() and it works perfectly.
find quote
slinuxgeek Offline
Senior Member
Posts: 219
Joined: Feb 2012
Reputation: 0
Post: #7
oh , I think I should try it again !!
find quote