[amc] --def file-filter f.video does not work

Support for Windows users
Post Reply
Pedgeth
Posts: 2
Joined: 11 Mar 2022, 13:36

[amc] --def file-filter f.video does not work

Post by Pedgeth »

Hi there, hopefully this is enough information for you guys to help me with, but if not, please let me know what else you need

Windows 11 home
qbittorrent v4.4.1 64bit
Java 8 Update 321 (build 1.8.0_321-b07)

Call to run filebot on download complete:

Code: Select all

"C:/Program Files/FileBot/filebot.launcher.exe" -script fn:amc --output "f:/torrents" --def file-filter f.video --action duplicate --conflict skip -non-strict --log-file f:/amc.log --def excludeList=f:/amc.excludes unsorted=n music=n artwork=n "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L" --def "seriesFormat=F:/torrent hold/TV/{n.replaceTrailingBrackets()}/Season {s.pad(2)}/{n.replaceTrailingBrackets()} - {s00e00} - {t.replace(':',' - ').replaceAll(/[?]/, '')}" "animeFormat=F:/torrent hold/Anime/{n.replaceTrailingBrackets()}/Season {s.pad(2)}/{n.replaceTrailingBrackets()} - {s00e00} - {t.replace(':',' - ').replaceAll(/[?]/, '')}" "movieFormat=F:/torrent hold/Movies/{n}/{n}" "musicFormat=N:/Music/{n}/{n}" --def deleteAfterExtract=y
Output in amc.log:

Code: Select all

Run script [fn:amc] at [Fri Mar 11 05:10:11 GMT 2022]
Parameter: excludeList = f:/amc.excludes
Parameter: unsorted = n
Parameter: music = n
Parameter: artwork = n
Parameter: ut_dir = F:\Torrents\Complete\South.Park.S25E05.WEBRip.x264-ION10
Parameter: ut_kind = multi
Parameter: ut_title = South Park S25E05 WEBRip x264 ION10
Parameter: ut_label = 
Parameter: seriesFormat = F:/torrent hold/TV/{n.replaceTrailingBrackets()}/Season {s.pad(2)}/{n.replaceTrailingBrackets()} - {s00e00} - {t.replace(':',' - ').replaceAll(/[?]/, '')}
Parameter: animeFormat = F:/torrent hold/Anime/{n.replaceTrailingBrackets()}/Season {s.pad(2)}/{n.replaceTrailingBrackets()} - {s00e00} - {t.replace(':',' - ').replaceAll(/[?]/, '')}
Parameter: movieFormat = F:/torrent hold/Movies/{n}/{n}
Parameter: musicFormat = N:/Music/{n}/{n}
Parameter: deleteAfterExtract = y
Argument[0]: File does not exist: C:\WINDOWS\system32\file-filter
Argument[1]: File does not exist: C:\WINDOWS\system32\f.video
Invalid usage: use either script parameters [dir:F:\Torrents\Complete\South.Park.S25E05.WEBRip.x264-ION10, kind:multi, title:South Park S25E05 WEBRip x264 ION10, label:null] or file arguments [C:\WINDOWS\system32\file-filter, C:\WINDOWS\system32\f.video] but not both
Abort (×_×)
Everything was working fine, don't remember changing any settings and now it's just... not working
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Windows 11 / qbittorrent not working

Post by rednoah »

Looks like your argument array is wrong somewhere around the file-filter part:

Code: Select all

Argument[0]: File does not exist: C:\WINDOWS\system32\file-filter
Argument[1]: File does not exist: C:\WINDOWS\system32\f.video

No:

Code: Select all

--def file-filter f.video

Yes:

Code: Select all

--file-filter f.video
:!: Note --file-filter forces filebot to pre-process input arguments (which is not recursive by default, unless -r is specified as well) instead of passing them onto the amc script. Moreover, the --file-filter option only applies to input arguments, but has no effect on script-specific parameters such as --def ut_dir and so --file-filter has no effect in your specific amc script usage.


:arrow: If you're using the amc script then you'll want to use the --def ignore option to ignore files that match certain patterns, e.g.

Code: Select all

--def ignore="[.](jpg|nfo|srt)$"
:idea: Please read the FAQ and How to Request Help.
Pedgeth
Posts: 2
Joined: 11 Mar 2022, 13:36

Re: [amc] --def file-filter f.video does not work

Post by Pedgeth »

Perfect! Thank you very much
Post Reply