byroot / pysrt

Python parser for SubRip (srt) files
GNU General Public License v3.0
446 stars 67 forks source link

add `text_without_tags` support to `SubRipFile` #96

Open lsloan opened 6 months ago

lsloan commented 6 months ago

The SubRipItem class supports two properties for getting the text of subtitles, text and text_without_tags. The latter conveniently returns the text with formatting tags removed.

The SubRipFile class supports the property text for getting the subtitle text, but it does not support one for removing format tags. That is unfortunate.

Please add a text_without_tags property to the SubRipFile class.

Thank you!