[SOLVED] Can AMC not try to always move a movie to "Movies"?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
kodiuser
Posts: 13
Joined: 08 Jan 2018, 01:38

[SOLVED] Can AMC not try to always move a movie to "Movies"?

Post by kodiuser »

I'm using Radarr and it already downloads to /mnt/HD/Movies, so I need AMC just to rename the movie and download all the metadata, but everytime I run it it creates the "Movies" folder somewhere and if I try to set the --output variable from where the movie is already correctly set:

Code: Select all

filebot -script fn:amc --output="/mnt/HD/" --conflict auto --def artwork=y --def extras=y --def kodi=localhost[:8080] moviefile.mkv
Nothing is done:

Code: Select all

Run script [fn:amc] at [Mon Jan 08 01:08:08 GMT 2018]
Parameter: artwork = y
Parameter: extras = y
Parameter: kodi = *****
Argument[0]: /mnt/HD/Movies/Movie (2017)/Movie (2017).mkv
Input: /mnt/HD/Movies/Movie (2017)/Movie (2017).mkv
xattr: [Movie (2017).mkv] => [Movie (2017)]
Group: [mov:movie 2017] => [Movie (2017).mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/mnt/HD/Movies/Movie (2017)/Movie (2017).mkv]
Skipped [/mnt/HD/Movies/Movie (2017)/Movie (2017).mkv] because [/mnt/HD/Movies/Movie (2017)/Movie (2017).mkv] already exists
Processed 0 files
Finished without processing any files
Failure (°_°)
Is there anyway to AMC just process the file that is already in the right place?
Last edited by kodiuser on 08 Jan 2018, 17:21, edited 1 time in total.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: Can AMC not try to always move a movie to "Movies"?

Post by kim »

short answer, NO.

then you need to use
artwork.tmdb
(artwork.tmdb.groovy)

also you want to look into using a format
http://www.filebot.net/forums/viewtopic.php?f=4&t=215

default is

Code: Select all

{plex}
you want -"Movies" =

Code: Select all

{plex.tail}
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Can AMC not try to always move a movie to "Movies"?

Post by rednoah »

The amc script is designed to process a set of files from one location to another. Processing files in place is explicitly not supported. You can use simple filebot -rename calls for that.

You could try to set a custom format that retains the original folder location, but I'm not sure if the amc script will be happy with that. The {folder} binding would help with that.
:idea: Please read the FAQ and How to Request Help.
kodiuser
Posts: 13
Joined: 08 Jan 2018, 01:38

Re: Can AMC not try to always move a movie to "Movies"?

Post by kodiuser »

rednoah wrote: 08 Jan 2018, 16:26 You could try to set a custom format that retains the original folder location, but I'm not sure if the amc script will be happy with that. The {folder} binding would help with that.
That's what I tried, it complains that the mkv already exists.

If it's no possible, than I need to manually call the -rename option, check somehow if it's tv or movie to manually call the artwork.tmdb or tv script and then a manual call to my kodi telling to update it's database.

Can you add the same --def kodi parameter that we have in the amc script to the other scripts that download metadata such as artwork.tmdb?
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Can AMC not try to always move a movie to "Movies"?

Post by rednoah »

I see. The amc script has additional checks to avoid processing the same files indefinitely. Bottomline, if you're not processing any files (i.e. they already have the right name) then you can't use the amc script.

The artwork.* scripts you can use standalone. There's no such script for Kodi updates because it's like a single line of code. curl is your friend.
:idea: Please read the FAQ and How to Request Help.
kodiuser
Posts: 13
Joined: 08 Jan 2018, 01:38

Re: Can AMC not try to always move a movie to "Movies"?

Post by kodiuser »

Thanks kim, your post gave me the idea of callong multiple commands: and rednoah for this software.
Post Reply