File Not Found Error (noob doesn't know how to quote arguments correctly)

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
alexander_q
Posts: 21
Joined: 19 Aug 2014, 02:02

File Not Found Error (noob doesn't know how to quote arguments correctly)

Post by alexander_q »

Using: qBittorrent.

My amc script is currently failing with "file not found" 100% of the time. The entries all look like this:

Code: Select all

Run script [fn:amc] at [Mon Oct 17 11:21:15 ACDT 2016]
Parameter: ut_label = 
Parameter: music = n
Parameter: artwork = n
Parameter: clean = y
Parameter: unsorted = y
Parameter: reportError = y
Parameter: seriesFormat = V:/_TV Shows/{n}/{'Season '+s}/{fn}
Parameter: movieFormat = V:/_Movies/{n} ({y})/{fn}
Parameter: excludeList = amc.txt
Argument:  V:\_qBittorrent\Elementary.S05E02.720p.HDTV.X264-DIMENSION[rarbg]”
File not found: V:\_qBittorrent\Elementary.S05E02.720p.HDTV.X264-DIMENSION[rarbg]”
Failure (°_°)
My script is:

Code: Select all

"C:/Program Files/FileBot/filebot.launcher.exe" -script fn:amc --output "V:" --log-file amc.log --action move --conflict override -non-strict --def "ut_label=%L" music=n artwork=n clean=y unsorted=y reportError=y "seriesFormat=V:/_TV Shows/{n}/{'Season '+s}/{fn}" "movieFormat=V:/_Movies/{n} ({y})/{fn}" excludeList=amc.txt "%F”
The only thing I changed recently was briefly removing series and movie format definitions and replacing them with "--format {plex}. The problems began after reverting to my original script above, which had always worked previously.

Sysinfo:

Code: Select all

FileBot 4.7.2 (r4178)
JNA Native: 4.0.1
MediaInfo: 0.7.78
7-Zip-JBinding: 9.20
Chromaprint: 1.1.0
Extended Attributes: OK
Script Bundle: 2016-10-08 (r408)
Groovy: 2.4.7
JRE: Java(TM) SE Runtime Environment 1.8.0_91
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 3 GB Max Memory / 29 MB Used Memory
OS: Windows 10 (amd64)
Package: MSI
Data: C:\Users\alexander_q\AppData\Roaming\FileBot
Done ?(?????)?
User avatar
rednoah
The Source
Posts: 23061
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: File Not Found Error 100%

Post by rednoah »

Open your eyes. Look at the log thoroughly. I'm 100% sure there is no file that ends with so you probably just screwed up your command-line call again:

Code: Select all


:idea: Does this not look a least a little bit strange to you? If not, stare at it until you see the difference:

Code: Select all

"%F”

Code: Select all

File not found: /path/to/file”
rednoah wrote:Make sure you escape and quote your cmdline arguments correctly. I will not fix your broken cmdline call for you.
Please figure out the basics yourself. I can help you with filebot. I cannot help you with learning basic command-line skills. There's plenty of resources for that online. Thanks.
:idea: Please read the FAQ and How to Request Help.
User avatar
alexander_q
Posts: 21
Joined: 19 Aug 2014, 02:02

Re: File Not Found Error 100%

Post by alexander_q »

Thanks Red Noah. That " does seem to be the problem, well spotted. Non ASCII character somehow got added when copying to/pasting from Dropbox Paper.
Post Reply