Skip to content

Cleaning up SRTs #110

@slifty

Description

@slifty

Task

Description

SRTs sometimes have lots of whitespace (which is part of the caption data) but which we can clear up in our SRT payloads.

00:14:41,825 --> 00:14:44,444
         tuberculosis,      including infections,

00:14:44,444 --> 00:14:44,444


00:14:44,444 --> 00:14:46,029
        nervous system and    lymphoma, other cancers,

00:14:46,029 --> 00:14:47,581
     and allergic reactions

I think it would be reasonable to (A) trim the white space at the front and end and (B) convert \s* to just a single space.

Note this is not talking about changing the captions -- this is just for the SRT appliance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions