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.
what is the name of root level?
slinuxgeek
Senior Member Posts: 187 Joined: Feb 2012 Reputation: 0 |
|
| find quote |
phil65
Skilled Skinner Posts: 4,456 Joined: Mar 2009 Reputation: 56 Location: Cologne, Germany |
2012-04-11 09:48
Post: #2
simply container.content() , without anything in brackets.
|
| find quote |
slinuxgeek
Senior Member Posts: 187 Joined: Feb 2012 Reputation: 0 |
2012-04-11 10:57
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
Skilled Skinner Joined: Apr 2009 Reputation: 50 Location: Germany |
2012-04-11 13:51
Post: #4
IsEmpty(Container.FolderPath) indicates if you're on root level or not.
|
| find quote |
slinuxgeek
Senior Member Posts: 187 Joined: Feb 2012 Reputation: 0 |
2012-04-11 14:04
Post: #5
Thanks `Black !!
|
| find quote |
phil65
Skilled Skinner Posts: 4,456 Joined: Mar 2009 Reputation: 56 Location: Cologne, Germany |
2012-04-11 18:15
Post: #6
? I´m using Container.Content() and it works perfectly.
|
| find quote |
slinuxgeek
Senior Member Posts: 187 Joined: Feb 2012 Reputation: 0 |
2012-04-11 20:22
Post: #7
oh , I think I should try it again !!
|
| find quote |

![[Image: xp1080-21.png]](http://www.planet-ira.de/wallpaper/xp1080-21.png)
Search
Help