Running FileBot from the console, Groovy scripting, shell scripts, etc
Connor
Posts: 10 Joined: 18 Dec 2017, 11:44
Post
by Connor » 23 Nov 2018, 15:17
Hello,
I've searched around for a while but can't seem to figure out how to fix my problem. I'm using a script i found on this forum and it works nicely:
Code: Select all
SET NZB_OUTPUT_FOLDER=%1
SET NZB_JOB_NAME=%3
SET NZB_CATEGORY=%5
filebot -script fn:amc --output "\\10.0.0.112\Media\Filmer" --action move --def clean=y --conflict skip --log-file amc.log --def excludeList=amc.txt "ut_dir=%NZB_OUTPUT_FOLDER%" "ut_kind=multi" "ut_title=%NZB_JOB_NAME%" "ut_label=%NZB_CATEGORY%"
My problem occurs here:
Code: Select all
--output "\\10.0.0.112\Media\Movies"
When I use this path it creates a new folder and puts it in:
Code: Select all
--output "\\10.0.0.112\Media\Movies\movies"
As I only use this script for the rename of movies I put the whole path in, is this not correct? Or is there a better way to do this when I only use the script for movies?
Thanks in advance.
rednoah
The Source
Posts: 23930 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 23 Nov 2018, 16:37
Just do something like this:
If you already know that it's only gonna be movies, then setting
--def ut_label is recommended:
Connor
Posts: 10 Joined: 18 Dec 2017, 11:44
Post
by Connor » 23 Nov 2018, 16:53
rednoah wrote: ↑ 23 Nov 2018, 16:37
Just do something like this:
If you already know that it's only gonna be movies, then setting
--def ut_label is recommended:
Wont this create a folder in:
called movies?
The problem is that my full path is
Filmer is movies in Norwegian, I just translated it to make everyone understand.
rednoah
The Source
Posts: 23930 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 23 Nov 2018, 19:25
Yes. I recommend renaming Filmer to Movies and then things will just work out of the box. Alternatively, you can pass in your own custom format that doesn't yield a "Movies" folder.
e.g.
viewtopic.php?f=5&t=4116
Connor
Posts: 10 Joined: 18 Dec 2017, 11:44
Post
by Connor » 23 Nov 2018, 23:07
Thanks for your help!
so
Code: Select all
filebot -script fn:amc --output "\\10.0.0.112\Media\Filmer\{plex.tail}" --action move
would give eg:
Code: Select all
"\\10.0.0.112\Media\Filmer\Scyscraper (2018)\Scyscraper (2018).mkv"
rednoah
The Source
Posts: 23930 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 24 Nov 2018, 04:56
Like this:
Code: Select all
--output "\\10.0.0.112\Media" --def movieFormat="Filmer\{plex.tail}"
See amc manual for details on how to use custom formats:
viewtopic.php?f=4&t=215