move/copy only if subtitle exists

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
febz11
Posts: 3
Joined: 28 Nov 2016, 22:07

move/copy only if subtitle exists

Post 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...
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: move/copy only if subtitle exists

Post by rednoah »

Unfortunately, the behaviour you want is not supported.
:idea: Please read the FAQ and How to Request Help.
febz11
Posts: 3
Joined: 28 Nov 2016, 22:07

Re: move/copy only if subtitle exists

Post by febz11 »

Thanks for the quick response... Any suggestions using the bash shell script, maybe using if statement?
febz11
Posts: 3
Joined: 28 Nov 2016, 22:07

Re: move/copy only if subtitle exists

Post 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
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: move/copy only if subtitle exists

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply