Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gboyd068 opened this issue Oct 26, 2023 · 0 comments
Open

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

gboyd068 opened this issue Oct 26, 2023 · 0 comments

Comments

@gboyd068
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant