Skip to content

SubRipTime.to_time() does not support times over 24 hours #95

@gboyd068

Description

@gboyd068

The .srt format stores times in hours / minutes / seconds / milliseconds, where the number of hours can be greater than 23. When converting the following subtitle to a time, ValueError: hour must be in 0..23 is raised as datetime.time stores times in days / hours /minutes etc

23939
32:54:04,120 --> 32:54:09,120
 The end of the first book

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