Filebot trying to process files that are still downloading

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
Achandab
Donor
Posts: 109
Joined: 04 Nov 2013, 21:20

Filebot trying to process files that are still downloading

Post by Achandab »

Can filebot distinguish the difference between a file that's being downloaded and completed?

Code: Select all

filebot -script 'fn:amc' /volumeUSB2/usbshare/Completed --output /volume1/Media --action move -non-strict --order Airdate --conflict auto --lang en --def 'music=y' 'unsorted=y' 'clean=y' 'skipExtract=y' 'minLengthMS=300000' 'minFileSize=100000000' 'excludeList=.excludes' --log all --log-file '/usr/local/filebot-node/data/filebot.log'

------------------------------------------

Locking /usr/local/filebot-node/data/filebot.log
Run script [fn:amc] at [Fri Oct 18 21:46:49 AEDT 2019]
Parameter: music = y
Parameter: unsorted = y
Parameter: clean = y
Parameter: skipExtract = y
Parameter: minLengthMS = 300000
Parameter: minFileSize = 100000000
Parameter: excludeList = .excludes
Argument[0]: /volumeUSB2/usbshare/Completed
Use excludes: /volume1/Media/.excludes (1)
Input: /volumeUSB2/usbshare/Completed/Movies/Fast.And.Furious.Presents.Hobbs.And.Shaw.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG-Obfuscated/_unpack/db7534fae4794bdbafea8a963109ea47.mkv
Group: {Movie=null} => [db7534fae4794bdbafea8a963109ea47.mkv]
Processing 1 unsorted files
[MOVE] from [/volumeUSB2/usbshare/Completed/Movies/Fast.And.Furious.Presents.Hobbs.And.Shaw.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG-Obfuscated/_unpack/db7534fae4794bdbafea8a963109ea47.mkv] to [/volume1/Media/Unsorted/db7534fae4794bdbafea8a963109ea47.mkv]
[MOVE] Failure: java.nio.file.AccessDeniedException: /volumeUSB2/usbshare/Completed/Movies/Fast.And.Furious.Presents.Hobbs.And.Shaw.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG-Obfuscated/_unpack/db7534fae4794bdbafea8a963109ea47.mkv
Processed 0 files
AccessDeniedException: /volumeUSB2/usbshare/Completed/Movies/Fast.And.Furious.Presents.Hobbs.And.Shaw.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG-Obfuscated/_unpack/db7534fae4794bdbafea8a963109ea47.mkv
Clean clutter files and empty folders
Finished without processing any files
Abort (×_×)
------------------------------------------

[Process error]
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot trying to process files that are still downloading

Post by rednoah »

:!: Files that are being downloaded are indistinguishable from files that are completed, on the file system level, so nothing FileBot or any other program can do in that regard.

If you could configure your download tool to mark files in some way (e.g. add *.tmp extension) then things become a lot simpler.

:idea: Most users will configure their download tool to call FileBot on completed files, and thus FileBot is only ever called on completed files.

:idea: Another approach would be to configure FileBot to only process files that haven't been modified within the last few hours. That approach assumes that downloads are continuous, with Last-Modified file attributes changing every few seconds, up and until the file is complete.
:idea: Please read the FAQ and How to Request Help.
Achandab
Donor
Posts: 109
Joined: 04 Nov 2013, 21:20

Re: Filebot trying to process files that are still downloading

Post by Achandab »

Thank you. I've tried both SABNZBD and NZBget and they both unfortunately unpack files in the completed directory. There doesn't seem to be a way to unpack in the temp directory then transfer to completed once done.

How can i configure the last modified attrib?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot trying to process files that are still downloading

Post by rednoah »

Here's general information on how to process only specific files:
viewtopic.php?t=4222

The last-modified attribute is automatically updated by the file system every time the file is written to. Maybe you can use the approach given in the link above to make it only process files that haven't been recently modified.


:!: If you're using FileBot Node then you won't be able to make it work, but otherwise if you are running from console then you can just use find to select files and then pass them to filebot.


:idea: Best to ask in the forums of your respective download tools on how people integrate those with arbitrary post-processing commands. You'll get better advice there on how to integrate their tools with filebot.
:idea: Please read the FAQ and How to Request Help.
Achandab
Donor
Posts: 109
Joined: 04 Nov 2013, 21:20

Re: Filebot trying to process files that are still downloading

Post by Achandab »

Cheers mate. Unfortunelty people are for the most part reluctant to reply or help. Maybe i'm just spoil by the brilliant response and support i get here :)
Post Reply