I’m not sure if this helps, but I had a lot of trouble trying to get this app to work. In the end i created a web app that does something similar - creates an MLT subtitle file from a Subrip file. see here for more info:
Here is the tutorial: