Sabnzb script

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
Connor
Posts: 10
Joined: 18 Dec 2017, 11:44

Sabnzb script

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.

User avatar
rednoah
The Source
Posts: 16810
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sabnzb script

Post by rednoah » 23 Nov 2018, 16:37

Just do something like this:

Code: Select all

--output "\\10.0.0.112\Media"
If you already know that it's only gonna be movies, then setting --def ut_label is recommended:

Code: Select all

--def "ut_label=Movie"
:idea: Please read the FAQ and How to Request Help.

Connor
Posts: 10
Joined: 18 Dec 2017, 11:44

Re: Sabnzb script

Post by Connor » 23 Nov 2018, 16:53

rednoah wrote:
23 Nov 2018, 16:37
Just do something like this:

Code: Select all

--output "\\10.0.0.112\Media"
If you already know that it's only gonna be movies, then setting --def ut_label is recommended:

Code: Select all

--def "ut_label=Movie"
Wont this create a folder in:

Code: Select all

"\\10.0.0.112\Media"
called movies?

The problem is that my full path is

Code: Select all

"\\10.0.0.112\Media\Filmer"
Filmer is movies in Norwegian, I just translated it to make everyone understand.

User avatar
rednoah
The Source
Posts: 16810
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sabnzb script

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.

Code: Select all

Filmer/{plex.tail}
:arrow: viewtopic.php?f=5&t=4116
:idea: Please read the FAQ and How to Request Help.

Connor
Posts: 10
Joined: 18 Dec 2017, 11:44

Re: Sabnzb script

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"

User avatar
rednoah
The Source
Posts: 16810
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Sabnzb script

Post by rednoah » 24 Nov 2018, 04:56

Like this:

Code: Select all

--output "\\10.0.0.112\Media" --def movieFormat="Filmer\{plex.tail}"
:arrow: See amc manual for details on how to use custom formats: viewtopic.php?f=4&t=215
:idea: Please read the FAQ and How to Request Help.

Post Reply