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

Parsing Error on Python 3.7 #7

Closed
WebFikirleri opened this issue Sep 16, 2018 · 2 comments
Closed

Parsing Error on Python 3.7 #7

WebFikirleri opened this issue Sep 16, 2018 · 2 comments

Comments

@WebFikirleri
Copy link

Here is the output

M:\FlixGrab>"Q:\[QW]\ttml2srt\python.exe" "Q:\[QW]\ttml2srt\ttml2srt.py" "M:\FlixGrab\[S1.Ep2] Sherlock - The Blind Banker.Turkish.ttml" > "M:\FlixGrab\[S1.Ep2] Sherlock - The Blind Banker.Turkish.srt" Traceback (most recent call last): File "Q:\[QW]\ttml2srt\ttml2srt.py", line 88, in <module> parse_times(body) File "Q:\[QW]\ttml2srt\ttml2srt.py", line 86, in parse_times parse_times(child, default_begin=begin) File "Q:\[QW]\ttml2srt\ttml2srt.py", line 86, in parse_times parse_times(child, default_begin=begin) File "Q:\[QW]\ttml2srt\ttml2srt.py", line 64, in parse_times begin = parse_time_expression(elem.attrib['begin'], default_offset=default_begin) File "Q:\[QW]\ttml2srt\ttml2srt.py", line 49, in parse_time_expression raise NotImplementedError('Parsing time expressions by ticks is not supported!') NotImplementedError: Parsing time expressions by ticks is not supported!

@codingcatgirl
Copy link
Owner

This has nothing to do with python 3.7 but it's exactly what the error message says. This TTML file uses "ticks" as a time unit, which is not supported by ttml2srt because it would require information about the video stream.

@codingcatgirl
Copy link
Owner

My bad, it was a misunderstanding of the specification. ticks are supported now.

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

2 participants