Running AMC with @File Hangs

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
uncleleothedad
Posts: 4
Joined: 11 Apr 2021, 20:05

Running AMC with @File Hangs

Post by uncleleothedad »

I'm trying to run AMC from the Windows 10 Command Line, but the execution hangs indefinitely and I'm not sure how to get more debug details. Hopefully you can help!

Here is my command:
Image

Here is my directory structure:
Image

Here is the contents of amc-args-movies.txt:

Code: Select all

-script 
fn:amc 
S:/BitTorrent/Completed/Movies 
--output 
S:/BitTorrent/Completed/Movies-Renamed 
--action 
test 
--conflict 
skip 
-non-strict 
--log all 
--log-file 
S:/BitTorrent/Logs/amc.log 
--def 
subtitles=en 
excludeList=amc.excludes 
unsorted=y 
music=y 
artwork=y 
ut_label=Movie 
ut_kind=multi 
movieFormat={plex.derive{" {tmdb-$id} "}{" [$vf, $channels, $aco, $hdr, $vc, $ac]"}}{".$ext"}" seriesFormat="{plex.derive{" {tmdb-$id} "}{" [$vf, $channels, $aco, $hdr, $vc, $ac]"}}{".$ext"}
Here are the results of filebot -script fn:sysinfo:

Code: Select all

S:\BitTorrent>filebot -script fn:sysinfo
FileBot 4.9.3 (r8340)
JNA Native: 6.1.0
MediaInfo: 20.09
7-Zip-JBinding: 16.02
Tools: fpcalc/1.5.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2021-02-22 (r738)
Groovy: 3.0.7
JRE: OpenJDK Runtime Environment 15.0.2
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 6 GB Max Memory / 51 MB Used Memory
OS: Windows 10 (amd64)
STORAGE: NTFS [(C:)] @ 261 GB | NTFS [Arcade] @ 887 GB | exFAT [Other] @ 2.4 TB | NTFS [internal] @ 4.2 GB | NTFS [Shield_USBD] @ 3.2 TB
DATA: C:\Users\RetroArcade\AppData\Roaming\FileBot
Package: MSI
License: FileBot License PX22794691 (Valid-Until: 2071-02-05)
Done ?(?????)?
Is there anything obvious I am doing wrong? Thanks!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Running AMC with @File Hangs

Post by rednoah »

1.
Try using a @file that's on the local file system to eliminate remote file system issues.


2.
Try using an @file that only says -version to see if that works.
:idea: Please read the FAQ and How to Request Help.
uncleleothedad
Posts: 4
Joined: 11 Apr 2021, 20:05

Re: Running AMC with @File Hangs

Post by uncleleothedad »

Thanks for your reply! I finally got back around to this problem. I tried #2 and that seems to work:

Code: Select all

S:\BitTorrent>filebot @amc-args-version.txt
FileBot 4.9.3 (r8340) / OpenJDK Runtime Environment 15.0.2 / Windows 10 10.0 (amd64)

S:\BitTorrent>
So that points me back to #1. I am using all local discs. S:\ is a local hard drive on the machine, so remote file systems shouldn't be a problem in this case. Any other ideas?

Thanks again!
uncleleothedad
Posts: 4
Joined: 11 Apr 2021, 20:05

Re: Running AMC with @File Hangs

Post by uncleleothedad »

Okay trying something simpler and getting more data now.

Commmand and output:

Code: Select all

S:\BitTorrent>filebot @amc-args-test.txt
File does not exist: fn:amc
File does not exist: S:/BitTorrent/Completed/Movies-Renamed
File does not exist: test
Bad script source: -script
Failure (?_?)??
amc-args-test.txt:

Code: Select all

-script 
fn:amc 
S:/BitTorrent/Completed/Movies
--output 
S:/BitTorrent/Completed/Movies-Renamed
--action 
test 
Seems like @file argument syntax isn't recognizing fn:amc. Odd...
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Running AMC with @File Hangs

Post by rednoah »

Since you've added an additional space to each line, you're accidentally doing this:

Code: Select all

$ filebot "-script " "fn:amc "
File does not exist: fn:amc 
Bad script source: -script 
:arrow: @files allow you to pass arguments verbatim, including space characters, line by line, so each line must only contain the argument value and must not include extra space characters.
:idea: Please read the FAQ and How to Request Help.
uncleleothedad
Posts: 4
Joined: 11 Apr 2021, 20:05

Re: Running AMC with @File Hangs

Post by uncleleothedad »

Ah! That was it. The script is now giving me feedback that I can understand. :) Feature request: error checking for this condition. I suspect many people might run into the same problem as some file consumers actually PREFER to have a space at the end of the line.

Thanks so much for your quick response and help!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Running AMC with @File Hangs

Post by rednoah »

Hasn't really come up. I'll add a hint to the docs. Checking @file syntax in the code is not planned however at this point, since automatically fixing typical issues (quotation marks, spaces, etc) makes certain use cases impossible where this is actually the argument value the user wants and has explicitly specified.
:idea: Please read the FAQ and How to Request Help.
Post Reply