Skip to content

hacky fix for missing segment near the end of dst file#2

Open
Hark0nnen wants to merge 1 commit intoFichteFoll:masterfrom
Hark0nnen:Fix2
Open

hacky fix for missing segment near the end of dst file#2
Hark0nnen wants to merge 1 commit intoFichteFoll:masterfrom
Hark0nnen:Fix2

Conversation

@Hark0nnen
Copy link
Copy Markdown

sushi doesnt not handle missing segments in destination file vert well (it ouputs corresponding subtitles with a pretty random timings), but there is a particularly bad case when missing segment is near the end of dst fiel and is longer than matching segment at the very end - it causes sushi to crash with attempt to perform operations on NoneType.

This is a very hacky fix for this particular case

It would be better to fix handling of missing segments properly, but i do not understand sushi code to attempt that.

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

Successfully merging this pull request may close these issues.

1 participant