AMC Input Exclude Directory

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
AndyPok1
Posts: 2
Joined: 21 Apr 2017, 18:43

AMC Input Exclude Directory

Post by AndyPok1 »

I have an on/off again issue, where because often my movie files being renamed are single files and not within a folder, AMC thinks that my directory structure (S:\Source) is a TV series and then does a wacky rename.

Example of a movie being renamed to a TV show:

Code: Select all

Run script [fn:amc] at [Thu Apr 09 14:59:33 EDT 2020]
Parameter: music = n
Parameter: unsorted = y
Parameter: artwork = n
Parameter: extras = n
Parameter: plex = *****
Parameter: seriesFormat = D:/TV/{n}/S{s}/{s.pad(2)}x{e.pad(2)} - {t} ({airdate})
Parameter: movieFormat = D:/Movies/{n} ({y})
Parameter: ut_state = 5
Parameter: ut_title = Bombshell.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv
Parameter: ut_kind = %K
Parameter: ut_file = Bombshell.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv
Parameter: ut_dir = S:\Source
Activate License xxxxxxxx
Bad ut_kind value: %K
Input: S:\Source\Bombshell.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv
Group: [Movie:null, Series:source] => [Bombshell.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Source]
Fetching episode data for [The Source (2013)]
Fetching episode data for [The Source]
Fetching episode data for [Source Gaming]
Fetching episode data for [SourceFed Truth or Dare]
[COPY] from [S:\Source\Bombshell.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv] to [D:\TV\Source Gaming\S2018\2018x19 - Mario Kart Tour Discussion ().mkv]
Processed 1 files
Notify Plex: [host:127.0.0.1, token:xxxxxxxxxxx]
GET: http://127.0.0.1:32400/library/sections/all/refresh?X-Plex-Token=xxxxxxxxxx
Done ヾ(@⌒ー⌒@)ノ
Is there any way to tell AMC when constructing its input to ignore the root directory structure for lookups?

Filebot command being run:

Code: Select all

filebot -script fn:amc --output "D:\Staging" --log-file D:\staging\amc.log --action copy -non-strict --def music=n unsorted=y artwork=n extras=n plex=127.0.0.1:xxxxxxxxxxxxx "seriesFormat=D:/TV/{n}/S{s}/{s.pad(2)}x{e.pad(2)} - {t} ({airdate})" "movieFormat=D:/Movies/{n} ({y})" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
This occasionally happens (albeit much less rare) with TV shows, because I'm assuming it finds the right TV show that is a higher quality match.

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

Re: AMC Input Exclude Directory

Post by rednoah »

The easy fix would be to just rename S:\Source to S:\Complete.


:idea: Depending on your use case, you may want to force Series Mode, if your use case allows for that. See amc script manual for details.
:idea: Please read the FAQ and How to Request Help.
Post Reply