Since the other programs I use prefer to use 2 letter sub extensions instead of 3 I decided to write a script for filebot which uses 2 letter extensions as well. Used the suball script as a basis and went from there. I have 0 experience in coding in Java/Groovy, thus someone with more experience could code it a lot neater. However as far as I have tested it does work.
Simply run the script using
Code: Select all
filebot -script /path/to/script /path/to/videos --def language=en maxAgeDays=10
You can omitt maxAgeDays if you want, you will have to specify a language. Only 1 language is permitted at a time though, so just run the script multiple times if you want multiple languages. The script will look for all video files, check if there are any subtitle files of the form: <filename>.<2letter lang code>.<.srt>, if there are none it will attempt to download them. As the downloaded sub will have the 3 letter extensions it then renames them using the same language code you put in. So for example <filename>.en.srt or <filename>.nl.srt.
Haven't tested this much yet, let me know if you run into any trouble:
https://www.dropbox.com/s/cywsawfxl20bn ... ter.script
//Edit: Added a message at the end informing you with the results.