2012-10-01, 21:11
(2012-10-01, 21:03)Mizaki Wrote: Just about to add audio and subtitle menus when I noticed the "name" isn't returned for audio or subtitles. For example GetItem or GetMovieDetails gives:
but Player.GetProperties gives:Code:"streamdetails": { "audio": [ { "channels": 6,"codec": "dca","language": "eng" }
Without the "name" you get things like: eng eng eng. Where there are two commentary tracks. Same thing for subtitles.Code:"currentaudiostream": { "bitrate": 0,"channels": 6,"codec": "dca","index": 0,"language": "eng","name": "DTS 5.1 @ 1510 kbps - DTS 5.1" }
I'll have a look and see if I can do it myself but you can probably do it in 5 minutes
That's not possible right now because XBMC only retrieves that information when an item is played but not when it reads the basic streamdetails of a file. Don't ask me why it's just how it is right now. So it would require several changes in different parts of the code (with which I'm not familiar with) to get it working.