Get subtitles
#1
Hello

I'm quite new in xbmc plugin development, but my idea is to create a plugin, which get english subtitles and send to translation. Like here: http://explain.cc

I've read manual: http://mirrors.xbmc.org/docs/python-docs/xbmc.html and almost whole wiki, but not found a way, how I can get subtitles, I mean subtitles content, not name.

In api there is 2 methods, but they are only return a name of subtitle.

Code:
print xbmc.Player().getAvailableSubtitleStreams()
print xbmc.Player().getSubtitles()

and result is:

Code:
12:53:44 T:9308  NOTICE: ['Breaking Bad - Season 2 - Episode 2.eng.srt']
12:53:44 T:9308  NOTICE: Breaking Bad - Season 2 - Episode 2.eng.srt

Maybe there is a other way to get subtitle content, not only name. I mean something like this:

Code:
2
00:02:50,703 --> 00:02:51,603
Come on!

3
00:03:02,078 --> 00:03:03,078
Please.

4
00:03:05,602 --> 00:03:06,590
Come on!

5
00:03:33,639 --> 00:03:34,443
God.

6
00:04:10,563 --> 00:04:11,563
Slow down.

7
00:04:12,162 --> 00:04:13,306
Slow down.
Reply

Logout Mark Read Team Forum Stats Members Help
Get subtitles0