Illegal Argument: java.nio.file.NoSuchFileException: C:\Program Files\qBittorrent\

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
WalterSobchak
Posts: 3
Joined: 23 Feb 2020, 17:13

Illegal Argument: java.nio.file.NoSuchFileException: C:\Program Files\qBittorrent\

Post by WalterSobchak »

Having an issue getting filtering to work, I've had AMC running for months now quite happily but I've been running into some renaming issues, specifically with Watchmen, and I've finally decided to do something about it!

Using qBittorrent
I currently have it setup that on download complete, the following is run - This works quite well, however I'm open to suggestions on how to set it up better if required

Code: Select all

"c:\program files\filebot\filebot.exe" -script fn:amc --action move --conflict auto -non-strict --log warning --log-file "C:/Temp/amc.log" --def deleteAfterExtract=y clean=y "seriesFormat=D:\{plex.tail}" "movieFormat=E:\{plex.tail}"  "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"
For filtering Watchmen, I set the following, but when that runs I get the error shown below

Code: Select all

"c:\program files\filebot\filebot.exe" -script fn:amc --action move --conflict auto -non-strict --log warning --log-file "C:/Temp/amc.log" --def deleteAfterExtract=y clean=y --filter 'n != /Vekterne/' "seriesFormat=D:\{plex.tail}" "movieFormat=F:\{plex.tail}"  "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"
But when it's run, I get the following in my output log file

Code: Select all

Illegal Argument: java.nio.file.NoSuchFileException: C:\Program Files\qBittorrent\!= (!=)
Illegal Argument: java.nio.file.NoSuchFileException: C:\Vekterne\' (\Vekterne\')
Illegal Argument: java.nio.file.InvalidPathException: Illegal char <:> at index 14: seriesFormat=D:\{plex.tail} (seriesFormat=D:\{plex.tail})
Illegal Argument: java.nio.file.InvalidPathException: Illegal char <:> at index 13: movieFormat=F:\{plex.tail} (movieFormat=F:\{plex.tail})
Illegal Argument: java.nio.file.InvalidPathException: Illegal char <:> at index 8: ut_dir=C:\Torrents\Watchmen.S01E05.1080p.WEB.h264-TBS (ut_dir=C:\Torrents\Watchmen.S01E05.1080p.WEB.h264-TBS)
Illegal Argument: java.nio.file.NoSuchFileException: C:\Program Files\qBittorrent\ut_kind=multi (ut_kind=multi)
Illegal Argument: java.nio.file.NoSuchFileException: C:\Program Files\qBittorrent\ut_title=Watchmen.S01E05.1080p.WEB.h264-TBS (ut_title=Watchmen.S01E05.1080p.WEB.h264-TBS)
Illegal Argument: java.nio.file.NoSuchFileException: C:\Program Files\qBittorrent\ut_label=sonarr (ut_label=sonarr)
Argument[0]: File does not exist: !=
Argument[1]: File does not exist: \Vekterne\'
Argument[2]: File does not exist: seriesFormat=D:\{plex.tail}
Argument[3]: File does not exist: movieFormat=F:\{plex.tail}
Argument[4]: File does not exist: ut_dir=C:\Torrents\Watchmen.S01E05.1080p.WEB.h264-TBS
Argument[5]: File does not exist: ut_kind=multi
Argument[6]: File does not exist: ut_title=Watchmen.S01E05.1080p.WEB.h264-TBS
Argument[7]: File does not exist: ut_label=sonarr
Illegal char <:> at index 14: seriesFormat=D:\{plex.tail}
java.nio.file.InvalidPathException: Illegal char <:> at index 14: seriesFormat=D:\{plex.tail}
	at net.filebot.util.FileSet.getPath(FileSet.java:90)
	at net.filebot.util.FileSet.contains(FileSet.java:82)
	at java_util_Set$contains.call(Unknown Source)
	at Script1.acceptFile(Script1.groovy:220)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1$_run_closure51.doCall(Script1.groovy:286)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1.run(Script1.groovy:286)
	at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:64)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:74)
	at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:163)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:37)
	at net.filebot.Main.main(Main.java:132)
What have I done wrong??
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC & Watchmen & Filtering

Post by rednoah »

:idea: "..." because Windows CMD (unlike bash) doesn't support '...' syntax:

Code: Select all

--filter "n != /Vekterne/"
:idea: --def name=value because --def name=value is the syntax for script parameters:

Code: Select all

--def "seriesFormat=D:\{plex.tail}"
:idea: Please read the FAQ and How to Request Help.
WalterSobchak
Posts: 3
Joined: 23 Feb 2020, 17:13

Re: Illegal Argument: java.nio.file.NoSuchFileException: C:\Program Files\qBittorrent\

Post by WalterSobchak »

Thanks for that!
It now runs and processes files, but still renames them to 'Vekterne' rather than Watchmen

Code: Select all

"c:\program files\filebot\filebot.exe" -script fn:amc --action move --conflict auto -non-strict --log warning --log-file "C:/Temp/amc.log" --def deleteAfterExtract=y clean=y --filter "n != /Vekterne/" --def "seriesFormat=D:\{plex.tail}" --def "movieFormat=F:\{plex.tail}" "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L"
Shouldn't the filter be catching this out?
WalterSobchak
Posts: 3
Joined: 23 Feb 2020, 17:13

Re: Illegal Argument: java.nio.file.NoSuchFileException: C:\Program Files\qBittorrent\

Post by WalterSobchak »

So I've been trying to test this in CMD and I'm still getting Vekterne appear rather than Watchmen

Have tried

Code: Select all

filebot -script fn:amc --output "C:\Torrents\Watchmen.S01E06.This.Extraordinary.Being.1080p.AMZN.WEB-DL.DDP5.1.H.264-KiNGS" --action duplicate -non-strict "C:\Torrents\Watchmen.S01E06.This.Extraordinary.Being.1080p.AMZN.WEB-DL.DDP5.1.H.264-KiNGS\Watchmen.S01E06.This.Extraordinary.Being.1080p.AMZN.WEB-DL.DDP5.1.H.264-KiNGS.mkv" --log-file amc.log --def excludeList.txt
My exclude list looks like so

Code: Select all

Vekterne
 Vekterne
Veteranerne
When it runs in CMD I get the following output

Code: Select all

Locking C:\Users\CGHMNStreaming\AppData\Roaming\FileBot\logs\amc.log
Run script [fn:amc] at [Sun Feb 23 21:53:20 GMT 2020]
Argument[0]: C:\Torrents\Watchmen.S01E06.This.Extraordinary.Being.1080p.AMZN.WEB-DL.DDP5.1.H.264-KiNGS\Watchmen.S01E06.This.Extraordinary.Being.1080p.AMZN.WEB-DL.DDP5.1.H.264-KiNGS.mkv
Argument[1]: C:\Program Files\FileBot\excludeList.txt
Input: C:\Torrents\Watchmen.S01E06.This.Extraordinary.Being.1080p.AMZN.WEB-DL.DDP5.1.H.264-KiNGS\Watchmen.S01E06.This.Extraordinary.Being.1080p.AMZN.WEB-DL.DDP5.1.H.264-KiNGS.mkv
xattr: [Watchmen.S01E06.This.Extraordinary.Being.1080p.AMZN.WEB-DL.DDP5.1.H.264-KiNGS.mkv] => [ Vekterne - 1x06 - null]
Group: [Series:vekterne] => [Watchmen.S01E06.This.Extraordinary.Being.1080p.AMZN.WEB-DL.DDP5.1.H.264-KiNGS.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [ Vekterne]
Fetching episode data for [ Vekterne]
Fetching episode data for [Veteranerne]
[DUPLICATE] from [C:\Torrents\Watchmen.S01E06.This.Extraordinary.Being.1080p.AMZN.WEB-DL.DDP5.1.H.264-KiNGS\Watchmen.S01E06.This.Extraordinary.Being.1080p.AMZN.WEB-DL.DDP5.1.H.264-KiNGS.mkv] to [C:\Torrents\Watchmen.S01E06.This.Extraordinary.Being.1080p.AMZN.WEB-DL.DDP5.1.H.264-KiNGS\TV Shows\Vekterne\Season 01\Vekterne - S01E06 -.mkv]
Processed 1 files
Done ?(?????)?
I don't get what I'm doing wrong...
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Illegal Argument: java.nio.file.NoSuchFileException: C:\Program Files\qBittorrent\

Post by rednoah »

WalterSobchak wrote: 23 Feb 2020, 18:53 Shouldn't the filter be catching this out?
Logs?

WalterSobchak wrote: 23 Feb 2020, 21:57

Code: Select all

filebot -script fn:amc --output "C:\Torrents\Watchmen.S01E06.This.Extraordinary.Being.1080p.AMZN.WEB-DL.DDP5.1.H.264-KiNGS" --action duplicate -non-strict "C:\Torrents\Watchmen.S01E06.This.Extraordinary.Being.1080p.AMZN.WEB-DL.DDP5.1.H.264-KiNGS\Watchmen.S01E06.This.Extraordinary.Being.1080p.AMZN.WEB-DL.DDP5.1.H.264-KiNGS.mkv" --log-file amc.log --def excludeList.txt
I don't get what I'm doing wrong...
You're trying to make the --filter option work for your use case, yet you do not specify the --filter option at all?



Here's how it works:

Code: Select all

filebot -rename *.mp4 --action TEST -non-strict --db TheTVDB --filter "n != /Vekterne/"
:idea: https://pastebin.com/1MdPHsyh
:idea: Please read the FAQ and How to Request Help.
Post Reply