Kodi Community Forum
How to get the list item title - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: How to get the list item title (/showthread.php?tid=145113)



How to get the list item title - ilomambo - 2012-11-13

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.


RE: How to get the list item title - sphere - 2012-11-13

In which context?
- From a script? Via JSONRPC?
- Which XBMC Version (Eden/Frodo-alpha)?


RE: How to get the list item title - ilomambo - 2012-11-14

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.