AniDevTwitter/animeopenings

\N ASS tag crashes subtitles.js

Closed this issue · 2 comments

We have this particular ASS (http://mugen.karaokes.moe/lyricsfiles/INT%20-%20Pokemon%20-%20OP%20-%20Gotta%20catch'em%20all.ass) with \N t ags inside to go to new lines.

When used with AO, the browser JS console reports an error :

Exception: TypeError
spans[0] is undefined
mainLoop@http://ryoko/JS/subtitles.js:2093:13

It seems to be on the code that manages how lines are split on multiple lines.

If we remove the \N from the .ass file, everything works fine.

Not a big issue as we can work around it just fine :)

I think 8081bfc should fix this.

I confirm it fixes it, thank you :)