Page 1 of 1

move/copy only if subtitle exists

Posted: 29 Nov 2016, 10:43
by febz11
Hello, newbie here. Prepared my script with amc as:

filebot -script fn:amc --output /volume1/video/filebot --action copy -non-strict /volume1/video/movie --log-file amc.log --def excludeList=amc.txt --def subtitles=tr --def seriesFormat=TV/{n}/{n}.{s00e00}.{t}

works great, however what i want is to copy only the files which has successfully downloaded a subtitle file. As in this script, it currently copies all video and tv show files whether they have a subtitle or not.

Any help appreciated...

Re: move/copy only if subtitle exists

Posted: 29 Nov 2016, 17:32
by rednoah
Unfortunately, the behaviour you want is not supported.

Re: move/copy only if subtitle exists

Posted: 29 Nov 2016, 20:43
by febz11
Thanks for the quick response... Any suggestions using the bash shell script, maybe using if statement?

Re: move/copy only if subtitle exists

Posted: 29 Nov 2016, 20:45
by febz11
Btw, google search brings me the following page, however the topic page is non existent?

Process files only if (at least) one subtitles found
viewtopic.php?f=4&t=2808

Re: move/copy only if subtitle exists

Posted: 30 Nov 2016, 12:30
by rednoah
You can have the amc script process files as usual to some temporary staging folder, and then use a custom bash script to copy video/subtitle file pairs to their final destination.