As a Portuguese I had problems with subtitles encoding, with some research I find a solution (all credits to Amit Bh)
All we have to do is clone the popcorn repo, edit one file and make a build.
git clone https://git.popcorntime.io/stash/scm/pt/popcorn-app.git
Edit src/app/lib/subtitle/generic.js and replace this line:
fs.writeFile(vtt, captions.vtt.generate(captions.srt.toJSON(data)), encoding, function (err)...
fs.writeFile(vtt, captions.vtt.generate(captions.srt.toJSON(data)), 'utf8', function (err) ...
To make a build with this fix just run: ./make_popcorn.sh
If all went well you’ll be able to run Popcorn:
I’m also providing a build with this fix already made, enjoy 🙂
Note that this is only for linux, if someone is interested in a windows executable please contact me.