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

  Thread Rating:
  • 0 Votes - 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
"/media/dirname1/dirname2"
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 Offline
Team-Kodi Member
Posts: 9,125
Joined: Jan 2009
Reputation: 157
Post: #2
neither of those are possible as far as i know.

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