-
Notifications
You must be signed in to change notification settings - Fork 69
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
Subtitles validation #23
Comments
A convenience method in pysrt would be welcome to check for valid subtitles files. |
I'm not sure if I think it's reasonable to consider them as valid unless you know some players that fail to parse them ? |
I'm also ok to implement a kind of
Your feedback on this one is welcome. |
My personal taste is I wouldn't use the error list but I agree that could be useful for some. |
I try to validate subtitles with this:
But unfortunately for some subtitles it fails even though the file is a valid subtitle. For example this one: https://docs.google.com/open?id=0B2q9iBGZdj6qOXZrbFpiV2ozOHc
I think there should be different kind of InvalidItem error. It could be subclassed to raise, in this case, EmptyText error.
Although, I'm not sure this should raise an error at all because this doesn't mean the item is invalid, it just has its text empty.
The text was updated successfully, but these errors were encountered: