File with spaces aborts

Any questions? Need some help?
Post Reply
snowybunting
Posts: 13
Joined: 19 Sep 2019, 17:17

File with spaces aborts

Post by snowybunting »

I have a script running on torrents that works really well except for random files with spaces in the name. When this happens, I generally just change the filename so there aren't any spaces, but the odd thing is sometimes the csript works on files with spaces. I must have something amiss in my scripts, but i cannot figure it out.

This script is called by Deluge after downloading:

Code: Select all

filebot -script fn:amc --output "/home3/****/TV_Proc/Unsorted" --action hardlink 
--conflict index -non-strict --log-file "/home3/****/Downloads/tv/tvShows.log" 
--def subtitles=en unsorted=y artwork=n deleteAfterExtract=y clean=y 
"ut_label=TV" "ut_dir="$torrentpath/$torrentname"" "ut_kind=multi" 
"ut_title="$torrentname""
Here is the log for the file it aborted on:

Code: Select all

Illegal Argument: java.nio.file.NoSuchFileException: /home3/****/of (of)
Illegal Argument: java.nio.file.NoSuchFileException: /home3/****/the (the)
Illegal Argument: java.nio.file.NoSuchFileException: /home3/****/Worlds (Worlds)
Illegal Argument: java.nio.file.NoSuchFileException: /home3/****g/2019 (2019)
Illegal Argument: java.nio.file.NoSuchFileException: /home3/****/S01 (S01)
Illegal Argument: java.nio.file.NoSuchFileException: /home3/****/hevc-d3g (hevc-d3
g)
Illegal Argument: java.nio.file.NoSuchFileException: /home3/****/ut_kind=multi (ut
_kind=multi)
Illegal Argument: java.nio.file.NoSuchFileException: /home3/****/ut_title=War (ut_
title=War)
Illegal Argument: java.nio.file.NoSuchFileException: /home3/****/of (of)
Illegal Argument: java.nio.file.NoSuchFileException: /home3/****/the (the)
Illegal Argument: java.nio.file.NoSuchFileException: /home3/****/Worlds (Worlds)
Illegal Argument: java.nio.file.NoSuchFileException: /home3/****/2019 (2019)
Illegal Argument: java.nio.file.NoSuchFileException: /home3/****/S01 (S01)
Illegal Argument: java.nio.file.NoSuchFileException: /home3/****/hevc-d3g (hevc-d3
g)
Run script [fn:amc] at [Thu Apr 09 15:06:19 GMT-05:00 2020]
Parameter: subtitles = en
Parameter: unsorted = y
Parameter: artwork = n
Parameter: deleteAfterExtract = y
Parameter: clean = y
Parameter: ut_label = TV
Parameter: ut_dir = /home3/****/Downloads/tv/War
Argument[0]: File does not exist: of
Argument[1]: File does not exist: the
Argument[2]: File does not exist: Worlds
Argument[3]: File does not exist: 2019
Argument[4]: File does not exist: S01
Argument[5]: File does not exist: hevc-d3g
Argument[6]: File does not exist: ut_kind=multi
Argument[7]: File does not exist: ut_title=War
Argument[8]: File does not exist: of
Argument[9]: File does not exist: the
Argument[10]: File does not exist: Worlds
Argument[11]: File does not exist: 2019
Argument[12]: File does not exist: S01
Argument[13]: File does not exist: hevc-d3g
Illegal usage: use either script parameters [label:TV, dir:/home3/****/Downloads/t
v/War] or file arguments [of, the, Worlds, 2019, S01, hevc-d3g, ut_kind=multi, ut_title=Wa
r, of, the, Worlds, 2019, S01, hevc-d3g] but not both
Abort (×_×)
Also, after I changed out name so Filebot worked, it thought this was War of the Worlds from 1988, and I can't for the life of me figure out how to use the "filter" argument to change it up, but this can be skipped until I get the spaces thing hammered out.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: File with spaces aborts

Post by rednoah »

You're not escaping / quoting your command-line argument correctly. This is a command-line skill unrelated to FileBot specifically.


:idea: Please read Cmdline and Argument Passing for details on escaping / quoting your command-line argument correctly.


:idea: Please read --filter and fine-tuning for details on how to use the --filter option.
:idea: Please read the FAQ and How to Request Help.
Post Reply