Intermittently not moving/renaming files

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
darcnl
Posts: 12
Joined: 10 Jul 2015, 14:30

Intermittently not moving/renaming files

Post by darcnl »

Hello! First, huge thank you to the staff involved in this program and those helping with automation issues (rednoah). My hats off to you, big time. After this, I'm sending a donation, as you've helped me in the past, and hopefully will again here now. I encourage everyone to do the same, as the labour put into this is huge, and it is absolutely worth a donation of whatever anyone can afford.

First, I'm posting this for a friend who I've been trying to help out. He uses the same Filebot script as me for months now, and usually it works perfectly. Very infrequently it will rename something incorrectly, but we're not complaining about that. However recently he's been telling me his automation script has intermittently uncompressed the file, but failed to rename or move the file to it's specified location.

Here is his script in uTorrent 2.2.1:

Code: Select all

"C:\Program Files\FileBot\filebot.launcher.exe" -script fn:amc --output "K:/" --log-file amc.log --action copy --conflict override -non-strict --def music=y --def clean=y subtitles=en artwork=n "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
I got him to trial the code in the command prompt and it tested fine with no errors. So I got him to send me the log of the file in question:
Parameter: music = y
Parameter: clean = y
Parameter: subtitles = en
Parameter: artwork = n
Parameter: ut_label = R
Parameter: ut_state = 5
Parameter: ut_title = tv.show.name.S02E07.HDTV.x264-KILLERS
Parameter: ut_kind = %K
Parameter: ut_file =
Parameter: ut_dir = C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS
Read archive [tv.show.name.s02e07.hdtv.x264-killers.rar] and extract to [C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers\tv.show.name.S02E07.HDTV.x264-KILLERS]
Extracting files [C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.S02E07.HDTV.x264-KILLERS.mp4]
SevenZipException: HRESULT: 0x1 (FALSE). Error extracting -1 element(s). Result: 1
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.nfo
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.r00
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.r01
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.r02
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.r03
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.r04
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.r05
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.r06
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.r07
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.r08
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.r09
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.r10
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.r11
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.r12
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.r13
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.r14
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.r15
Exclude: C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers.sfv
No files selected for processing
Failure (°_°)
I'm at a loss as to why we're getting the 'No files selected for processing". The script was already accessing the file, uncompressed it and just left it in the original downloads folder without moving it to the separate hard drive. The only thing I can think of is the uncompression took too long, the file never got created in time, and therefore the script couldn't find the file to move & rename. Could this be the case?

To confirm the issue, I tried the same file on my computer using the same script in uTorrent 2.2.1 and it uncompressed, renamed and moved perfectly. So the issue must be with his machine. I just don't know why this is happening.

Thank you (again!)
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Intermittently not moving/renaming files

Post by rednoah »

As far as FileBot knows extraction failed. A (partially extracted) file may or may not exist:

Code: Select all

Extracting files [C:\Downloads\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.s02e07.hdtv.x264-killers\tv.show.name.S02E07.HDTV.x264-KILLERS\tv.show.name.S02E07.HDTV.x264-KILLERS.mp4]
SevenZipException: HRESULT: 0x1 (FALSE). Error extracting -1 element(s). Result: 1
This is an issue in the 7-Zip-JBinding native library and can't be fixed by me.
:idea: Please read the FAQ and How to Request Help.
darcnl
Posts: 12
Joined: 10 Jul 2015, 14:30

Re: Intermittently not moving/renaming files

Post by darcnl »

Fair enough. Thanks for the quick reply.
Post Reply