Skip to content

Cleaner error handeling? #10

@mabushey

Description

@mabushey

I have a subtitle with this:

857
00:46:28,703 --> 00:46:30,288

erenotgonna supportthat

Obviously this is a problem srt. This crate gives:

thread 'main' panicked at 'parser error: Error { inner: Error { inner: ParseIntError { kind: InvalidDigit }

expected SubRip index line, found 'erenotgonna supportthat'

Which isn't horrible but seems like it could have a more graceful crash, or better yet handle the extra return. My guess is it got this way from someone editing a subtitle and removing [Ruby] (Persons name) w/o removing the return.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions