Why is the amc script processing Episode files as Movies?

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
scottycope
Posts: 6
Joined: 15 Feb 2020, 04:45

Why is the amc script processing Episode files as Movies?

Post by scottycope »

What I ultimately want to do is call FB from qBittorrent. However, before I set that up I am trying my hand using test mode. Here is my CLI call:

Code: Select all

filebot -script fn:amc --output "Y:/" --action test --conflict auto -non-strict "C:\Users\Scott\Desktop\test movies\Movies" --log-file amc.log --def excludeList=amc.txt --def @"c:\users\scott\desktop\test movies\args.txt"
The values in my args.txt file are simply formatting:

Code: Select all

movieFormat=Y:\Shared Movies\{n0 = n.sortName().replaceAll("'", "").charAt(0); n0.isDigit() ? '#' : n0}\{n} ({y})/{n} ({y}){ext=='srt' ? ".eng" : ''}
seriesFormat=Y:\Shared TV Shows/{n0 = n.sortName().replaceAll("'", "").charAt(0); n0.isDigit() ? '#' : n0}/{n}/{episode.special ? 'Specials' : 'Season '+s.pad(2)}/{n} {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t}{ext=='srt' ? ".eng" : ''}
Nothing super complicated, I don't think. All I want to do is put the movie (Ahh Zombies) in the Movies folder and the tv show (Scooby) in the TV Show folder. I see that there invalid charaters in the looked up Scooby name but am not sure htat is causing my issue. The real issue is the Scooby is not being recognized as a TV show but, instead. Here is the output of my log file when I try to run this:

Code: Select all

Run script [fn:amc] at [Fri Feb 14 23:54:08 EST 2020]
Parameter: excludelist = amc.txt
Parameter: movieFormat = Y:\Shared Movies\{n0 = n.sortName().replaceAll("'", "").charAt(0); n0.isDigit() ? '#' : n0}\{n} ({y})/{n} ({y}){ext=='srt' ? ".eng" : ''}
Parameter: seriesFormat = Y:\Shared TV Shows/{n0 = n.sortName().replaceAll("'", "").charAt(0); n0.isDigit() ? '#' : n0}/{n}/{episode.special ? 'Specials' : 'Season '+s.pad(2)}/{n} {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t}{ext=='srt' ? ".eng" : ''}
Argument[0]: C:\Users\Scott\Desktop\test movies\Movies
Input: C:\Users\Scott\Desktop\test movies\Movies\Aaah! Zombies!! (2007) [BluRay] [1080p] [YTS.AM]\Aaah!.Zombies!!.2007.1080p.BluRay.x264-[YTS.AM].mp4
Input: C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E01 1080p WEB-DL AAC2.0 H.264.mkv
Input: C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E02 1080p WEB-DL AAC2.0 H.264.mkv
Input: C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E03 1080p WEB-DL AAC2.0 H.264.mkv
Input: C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E04 1080p WEB-DL AAC2.0 H.264.mkv
Input: C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E05 1080p WEB-DL AAC2.0 H.264.mkv
Input: C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E06 1080p WEB-DL AAC2.0 H.264.mkv
Input: C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E07 1080p WEB-DL AAC2.0 H.264.mkv
Input: C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E08 1080p WEB-DL AAC2.0 H.264.mkv
Input: C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E09 1080p WEB-DL AAC2.0 H.264.mkv
Input: C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E10 1080p WEB-DL AAC2.0 H.264.mkv
Input: C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E11 1080p WEB-DL AAC2.0 H.264.mkv
Input: C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E12 1080p WEB-DL AAC2.0 H.264.mkv
Input: C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E13 1080p WEB-DL AAC2.0 H.264.mkv
Input: C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E14 1080p WEB-DL AAC2.0 H.264.mkv
Group: [Movie:Aaah! Zombies! (2007)] => [Aaah!.Zombies!!.2007.1080p.BluRay.x264-[YTS.AM].mp4]
Group: [Movie:What's New Scooby-Doo? Vol. 8: E-Scream! (2006)] => [What's New Scooby-Doo S01E01 1080p WEB-DL AAC2.0 H.264.mkv, What's New Scooby-Doo S01E02 1080p WEB-DL AAC2.0 H.264.mkv, What's New Scooby-Doo S01E03 1080p WEB-DL AAC2.0 H.264.mkv, What's New Scooby-Doo S01E04 1080p WEB-DL AAC2.0 H.264.mkv, What's New Scooby-Doo S01E05 1080p WEB-DL AAC2.0 H.264.mkv, What's New Scooby-Doo S01E06 1080p WEB-DL AAC2.0 H.264.mkv, What's New Scooby-Doo S01E07 1080p WEB-DL AAC2.0 H.264.mkv, What's New Scooby-Doo S01E08 1080p WEB-DL AAC2.0 H.264.mkv, What's New Scooby-Doo S01E09 1080p WEB-DL AAC2.0 H.264.mkv, What's New Scooby-Doo S01E10 1080p WEB-DL AAC2.0 H.264.mkv, What's New Scooby-Doo S01E11 1080p WEB-DL AAC2.0 H.264.mkv, What's New Scooby-Doo S01E12 1080p WEB-DL AAC2.0 H.264.mkv, What's New Scooby-Doo S01E13 1080p WEB-DL AAC2.0 H.264.mkv, What's New Scooby-Doo S01E14 1080p WEB-DL AAC2.0 H.264.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [C:\Users\Scott\Desktop\test movies\Movies\Aaah! Zombies!! (2007) [BluRay] [1080p] [YTS.AM]\Aaah!.Zombies!!.2007.1080p.BluRay.x264-[YTS.AM].mp4]
[TEST] from [C:\Users\Scott\Desktop\test movies\Movies\Aaah! Zombies!! (2007) [BluRay] [1080p] [YTS.AM]\Aaah!.Zombies!!.2007.1080p.BluRay.x264-[YTS.AM].mp4] to [Y:\Shared Movies\W\Wasting Away (2007)\Wasting Away (2007).mp4]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E01 1080p WEB-DL AAC2.0 H.264.mkv]
Auto-detect movie from context: [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E02 1080p WEB-DL AAC2.0 H.264.mkv]
Auto-detect movie from context: [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E03 1080p WEB-DL AAC2.0 H.264.mkv]
Auto-detect movie from context: [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E04 1080p WEB-DL AAC2.0 H.264.mkv]
Auto-detect movie from context: [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E05 1080p WEB-DL AAC2.0 H.264.mkv]
Auto-detect movie from context: [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E06 1080p WEB-DL AAC2.0 H.264.mkv]
Auto-detect movie from context: [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E07 1080p WEB-DL AAC2.0 H.264.mkv]
Auto-detect movie from context: [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E08 1080p WEB-DL AAC2.0 H.264.mkv]
Auto-detect movie from context: [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E09 1080p WEB-DL AAC2.0 H.264.mkv]
Auto-detect movie from context: [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E10 1080p WEB-DL AAC2.0 H.264.mkv]
Auto-detect movie from context: [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E11 1080p WEB-DL AAC2.0 H.264.mkv]
Auto-detect movie from context: [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E12 1080p WEB-DL AAC2.0 H.264.mkv]
Auto-detect movie from context: [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E13 1080p WEB-DL AAC2.0 H.264.mkv]
Auto-detect movie from context: [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E14 1080p WEB-DL AAC2.0 H.264.mkv]
Stripping invalid characters from new path: Y:/Shared Movies/W/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)
Stripping invalid characters from new path: Y:/Shared Movies/W/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)
Stripping invalid characters from new path: Y:/Shared Movies/W/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)
Stripping invalid characters from new path: Y:/Shared Movies/W/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)
Stripping invalid characters from new path: Y:/Shared Movies/W/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)
Stripping invalid characters from new path: Y:/Shared Movies/W/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)
Stripping invalid characters from new path: Y:/Shared Movies/W/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)
Stripping invalid characters from new path: Y:/Shared Movies/W/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)
Stripping invalid characters from new path: Y:/Shared Movies/W/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)
Stripping invalid characters from new path: Y:/Shared Movies/W/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)
Stripping invalid characters from new path: Y:/Shared Movies/W/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)
Stripping invalid characters from new path: Y:/Shared Movies/W/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)
Stripping invalid characters from new path: Y:/Shared Movies/W/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)
Stripping invalid characters from new path: Y:/Shared Movies/W/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)/What's New Scooby-Doo? Vol. 8: E-Scream! (2006)
[TEST] from [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E01 1080p WEB-DL AAC2.0 H.264.mkv] to [Y:\Shared Movies\W\What's New Scooby-Doo Vol. 8 E-Scream! (2006)\What's New Scooby-Doo Vol. 8 E-Scream! (2006).mkv]
[TEST] from [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E02 1080p WEB-DL AAC2.0 H.264.mkv] to [Y:\Shared Movies\W\What's New Scooby-Doo Vol. 8 E-Scream! (2006)\What's New Scooby-Doo Vol. 8 E-Scream! (2006).mkv]
[TEST] from [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E03 1080p WEB-DL AAC2.0 H.264.mkv] to [Y:\Shared Movies\W\What's New Scooby-Doo Vol. 8 E-Scream! (2006)\What's New Scooby-Doo Vol. 8 E-Scream! (2006).mkv]
[TEST] from [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E04 1080p WEB-DL AAC2.0 H.264.mkv] to [Y:\Shared Movies\W\What's New Scooby-Doo Vol. 8 E-Scream! (2006)\What's New Scooby-Doo Vol. 8 E-Scream! (2006).mkv]
[TEST] from [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E05 1080p WEB-DL AAC2.0 H.264.mkv] to [Y:\Shared Movies\W\What's New Scooby-Doo Vol. 8 E-Scream! (2006)\What's New Scooby-Doo Vol. 8 E-Scream! (2006).mkv]
[TEST] from [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E06 1080p WEB-DL AAC2.0 H.264.mkv] to [Y:\Shared Movies\W\What's New Scooby-Doo Vol. 8 E-Scream! (2006)\What's New Scooby-Doo Vol. 8 E-Scream! (2006).mkv]
[TEST] from [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E07 1080p WEB-DL AAC2.0 H.264.mkv] to [Y:\Shared Movies\W\What's New Scooby-Doo Vol. 8 E-Scream! (2006)\What's New Scooby-Doo Vol. 8 E-Scream! (2006).mkv]
[TEST] from [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E08 1080p WEB-DL AAC2.0 H.264.mkv] to [Y:\Shared Movies\W\What's New Scooby-Doo Vol. 8 E-Scream! (2006)\What's New Scooby-Doo Vol. 8 E-Scream! (2006).mkv]
[TEST] from [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E09 1080p WEB-DL AAC2.0 H.264.mkv] to [Y:\Shared Movies\W\What's New Scooby-Doo Vol. 8 E-Scream! (2006)\What's New Scooby-Doo Vol. 8 E-Scream! (2006).mkv]
[TEST] from [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E10 1080p WEB-DL AAC2.0 H.264.mkv] to [Y:\Shared Movies\W\What's New Scooby-Doo Vol. 8 E-Scream! (2006)\What's New Scooby-Doo Vol. 8 E-Scream! (2006).mkv]
[TEST] from [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E11 1080p WEB-DL AAC2.0 H.264.mkv] to [Y:\Shared Movies\W\What's New Scooby-Doo Vol. 8 E-Scream! (2006)\What's New Scooby-Doo Vol. 8 E-Scream! (2006).mkv]
[TEST] from [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E12 1080p WEB-DL AAC2.0 H.264.mkv] to [Y:\Shared Movies\W\What's New Scooby-Doo Vol. 8 E-Scream! (2006)\What's New Scooby-Doo Vol. 8 E-Scream! (2006).mkv]
[TEST] from [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E13 1080p WEB-DL AAC2.0 H.264.mkv] to [Y:\Shared Movies\W\What's New Scooby-Doo Vol. 8 E-Scream! (2006)\What's New Scooby-Doo Vol. 8 E-Scream! (2006).mkv]
[TEST] from [C:\Users\Scott\Desktop\test movies\Movies\What's New Scooby-Doo Season 1 S01 1080p WEB-DL AAC2.0 H.264\What's New Scooby-Doo S01E14 1080p WEB-DL AAC2.0 H.264.mkv] to [Y:\Shared Movies\W\What's New Scooby-Doo Vol. 8 E-Scream! (2006)\What's New Scooby-Doo Vol. 8 E-Scream! (2006).mkv]
Processed 14 files
Done ヾ(@⌒ー⌒@)ノ
Any suggestions on how to correct this is greatly appreciated. I'm sure it's a simple correction but I have not managed to find it in any of the posts / help files / etc. I just need to have FB see Scooby as a TV show, not a movie. However, the input folder can store both movies and tv shows. Help!?!? Thank you!!
User avatar
rednoah
The Source
Posts: 18834
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: CLI Call to FileBot

Post by rednoah »

1.
Wasting Away (2007) is the correct match for Aaah! Zombies!! (2007) so that was is fine even though it looks wrong on first glance:
https://www.themoviedb.org/search?query ... uage=en-US


2.
You have your episode files in a folder called Movies. This will force Movie Mode. Rename your Movies folder to Media (or anything else not Movies) to let auto-detection do it's job, or use TV Shows as folder name to force Episode Mode.
:idea: Please read the FAQ and How to Request Help.
scottycope
Posts: 6
Joined: 15 Feb 2020, 04:45

Re: Why is the amc script processing Episode files as Movies?

Post by scottycope »

OK, this is awesome. It seems kind of foolish now but I had no idea that a folder called Movies would trigger movie mode. Renaming the folder did the trick. Episodes go as TV shows and movies go as movies now. Thank you!

And, yes, I had to look up Wasting Away when I ran the script first but also found that this was the correct match.

Thank you for your quick and excellent response!
Post Reply