excludeList and downloading files

Any questions? Need some help?
Post Reply
dradiant14
Posts: 3
Joined: 12 Jan 2016, 18:20

excludeList and downloading files

Post by dradiant14 »

Hi!

I currently SFTP my files from a separate server. I am then running the amc script (with no integration into any torrent client). I seem to run into an issue when the script runs and a file is still being actively downloaded. The script fails (as it should as the file(s) have not completed) and writes to the excludeList. The next time the script runs it fails as the files in question (no completed downloading) are now listed in the exclude list.

I have the script run once an hour:
filebot -script fn:amc --output "F:\AMC" --action move "F:\AMC\Downloaded" --def excludeList=amc.txt deleteAfterExtract=y clean=y

Any guidance on how to solve this quirk would be awesome.

Thanks
User avatar
rednoah
The Source
Posts: 23950
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: excludeList and downloading files

Post by rednoah »

Make a script that first calls rsync to sync files, and then calls filebot once rsync is done.

Alternatively, you can tell your sftp client to use temporary filenames while downloading files (e.g. like Chrome does) and only move/rename files to the final location once a download has been completed.
:idea: Please read the FAQ and How to Request Help.
Post Reply