What I want to do, but what is quite hard for me. When I have a movie.mkv I want to download subs. Currently it download subs to ie movie.nld.srt, after that I need to rename it otherwise my Popcorn Box won't recognize the subs.
I created a simple script, but it is not completely what I want:
Code: Select all
#!/bin/sh
filebot -script fn:suball --lang nl --log-file filebot.log /volume1/Movies
filebot -script fn:suball --lang en --log-file filebot.log /volume1/Movies
filebot -script fn:replace --action copy --conflict override --def "e=.eng.srt" "r=.srt" --log-file filebot.log .
filebot -script fn:replace --action copy --conflict override --def "e=.nld.srt" "r=.srt" --log-file filebot.log .
(- when there is already a srt-file it won't be overwritten) fixed by adding 'copy' and 'override', I think
- when a dutch srt-file is already there, overwriting is useless
- when I am right: when movie.srt is already there, it won't look for other subs
Can you please advice me how to improve this script? Or maybe combine some commands (right now it takes 1 minute per movie)? Everything is welcome.
