how can we convert "Player.Folderpath" to "Container.Folderpath" ?

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
slinuxgeek Offline
Senior Member
Posts: 219
Joined: Feb 2012
Reputation: 0
Music  how can we convert "Player.Folderpath" to "Container.Folderpath" ?
Post: #1
Container.Folderpath returns a string in format like "musicdb://3"(for example).
Player.Folderpath returns a string in format like "/media/dirname1/dirname2" (for example).

when we are playing a song from any folder in xbmc for ex: from Artists->artistname1->albumname3->song2
now we view some other folder suppose Albums , which is displaying all albums.

Since the music player is playing a song , we can query $INFO[Player.Folderpath] which will return like
but now I want it's related Container.Folderpath how can I get that.

because In my skin I want that clicking on album art of the playing song should open same album in front of user to select other song from same album.

So the question is how can we convert "Player.Folderpath" to "Container.Folderpath" ?

If it is not possible then please tell me how can we know the event when user starts playing a song , because may be that time I will be able to store "Container.Folderpath" with in a skin.string variable which can be used later?

Thanks For Help.
find quote
ronie Online
Team-Kodi Member
Posts: 13,174
Joined: Jan 2009
Reputation: 392
Post: #2
neither of those are possible as far as i know.

Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ and Search the forum before posting.
For troubleshooting and bug reporting please make sure you read this first.
find quote