Kodi Community Forum

Full Version: Processing subtitle text
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there an easy way to process subtitle text (independently of where it comes from, after fetching and parsing etc)? Maybe an existing add-on that I can modify?

Or, maybe somebody has made one already that allows regex substitutions?
What sort of pre-processing or modifying is needed?
The specific processing I want is to detect quoted text and treat it differently from non-quoted. A common subtitle convention is for quoted text to translate on-screen text, while non-quoted refers to dialog. So you might want to suppress one or the other.
(2017-11-01, 22:07)Luke M Wrote: [ -> ]Is there an easy way to process subtitle text (independently of where it comes from, after fetching and parsing etc)? Maybe an existing add-on that I can modify?

Or, maybe somebody has made one already that allows regex substitutions?

https://forum.kodi.tv/showthread.php?tid=283342
(2017-11-01, 23:37)DaLanik Wrote: [ -> ]https://forum.kodi.tv/showthread.php?tid=283342

Thanks. This is helpful, but I'm disappointed that apparently Kodi doesn't have a subtitle hook. Duplicating Kodi's subtitle parsing and messing with files is...not ideal.