Read subtitles with python ?
#1
Is there a way to "read" the subtitles with python ( Kodi on OpenELEC - Raspberry Pi 3) ?

I found:
disableSubtitles(...)
getAvailableSubtitleStreams(...)
getSubtitles(...)
and much more...

But no command to read the actual subtitle as string (text).

I need it to control external hardware and it is easy for video editors to take control commands (motioncontrol, force feedback control, ambilight...) in the subtitle. It is easy to create and hidden for the watcher.

Thanks for every help

Oliver
Reply
#2
You have to read the subtitles yourself. You can get subs path & filename from Kodi, then you have to write code to read it and parse it. You can have a look at my CleanSubs addon....
Reply

Logout Mark Read Team Forum Stats Members Help
Read subtitles with python ?0