2022-06-05, 17:03
hi guys, is it possible to capture/get hold of the text displayed in the subtitles section via Python when playing something? It's coming up when you press Settings/Subtitles settings/Subtitle. There you have a bunch of subtitles to select from. I'd like to capture the name of the subtitles EXACTLY as they appear in this section.
For instance: English - UnitedKingdom [forced]
If I use xbmc.Player().getAvailableSubtitleStreams() I only get 'en-UnitedKingdom' twice. One for the full subs and the other are the forced ones. That command doesn't show the distinction of forced vs regular subs.
Here is a picture of it for better reference: https://i.ibb.co/LdMpZLG/this.jpg
My question is not necessarily about subtitles as you can see. It's about getting hold of the text that I can see in Kodi. Hope someone can help me out! Thank a bunch!
For instance: English - UnitedKingdom [forced]
If I use xbmc.Player().getAvailableSubtitleStreams() I only get 'en-UnitedKingdom' twice. One for the full subs and the other are the forced ones. That command doesn't show the distinction of forced vs regular subs.
Here is a picture of it for better reference: https://i.ibb.co/LdMpZLG/this.jpg
My question is not necessarily about subtitles as you can see. It's about getting hold of the text that I can see in Kodi. Hope someone can help me out! Thank a bunch!