Posts: 204
Joined: Oct 2012
Reputation:
0
2012-11-13, 10:25
(This post was last modified: 2012-11-13, 16:18 by ilomambo.)
When playing a stream from the internet, how can I get the label(title) of the item that is being played?
I only managed to get the file with xbmc.Player().getPlayingFile() and it definitely does not get the string I saw listed.
Posts: 1,299
Joined: Jul 2009
Reputation:
59
sphere
Retired Team-Kodi Member
Posts: 1,299
In which context?
- From a script? Via JSONRPC?
- Which XBMC Version (Eden/Frodo-alpha)?
Posts: 204
Joined: Oct 2012
Reputation:
0
2012-11-14, 19:45
(This post was last modified: 2012-11-14, 19:55 by ilomambo.)
I am trying to tweak the XBMC subtitles code (phyton), I got XBMC EDEN, using Confluence default skin
I noticed the script fetches OK the subtitles when I watch a local file, because of the file name.
When I watch a streamed video, movie or TV show, the script fails always to fetch a subtitle, because the stream path does not have the actual label we see on the list but some coded stuff like http://..../ecg899976544363/video.flv
I want to know if from within the XBMC subtitles phyton code I can get the label I see on the list, so I can pass it to the subtitles provider.