Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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