Page 1 of 1

No autorenaming of "Trailer Park Boys"?

Posted: 18 Sep 2014, 12:15
by andifso
Hi,

I know it is "excluded" because it is a trailer. Dont I have any chance to rename this automatically? I am happy for any answer :). Thank you so much

Re: No autorenaming of "Trailer Park Boys"?

Posted: 18 Sep 2014, 14:13
by rednoah
If you click on the datasource to fetch data before you add any files it'll just fetch data and not perform any matching.

So:
1. Fetch data
2. Drop files
3. Align manually
4. Rename

Re: No autorenaming of "Trailer Park Boys"?

Posted: 19 Sep 2014, 11:10
by andifso
thanks rednoah, worked perfectly!

Re: No autorenaming of "Trailer Park Boys"?

Posted: 19 Sep 2014, 18:31
by rednoah
FYI why Sample/Trailer files will not be excluded under any circumstance if the file size is 256 MB or more.

Are you just testing this case with a 0-byte file?

Re: No autorenaming of "Trailer Park Boys"?

Posted: 25 Jul 2017, 22:19
by kim
rednoah wrote: 19 Sep 2014, 18:31 FYI why Sample/Trailer files will not be excluded under any circumstance if the file size is 256 MB or more.
This is not correct, no matter the filesize using AMC

"Parameter: ut_label = Movie
Ignore extra: D:\test\movies\Trailer.Park.Boys.2014.mkv
No files selected for processing"

Now:

Code: Select all

if (f.name =~ /(?<=\b|_)(?i:Sample|Trailer|...)(?=\b|_)/) {
		log.finest "Ignore extra: $f"
		return false
	}
New (standard naming):

Code: Select all

if (f.name =~ /(?<=\b|_)(?i:Sample|-Trailer|...)(?=\b|_)/) {
		log.finest "Ignore extra: $f"
		return false
	}
and filter out the rest with "minFileSize" and "minLengthMS"

maybe a combo like this:

Code: Select all

// ignore trailer videos
	if (f.name =~ /(?<=\b|_)(?i:Trailer)(?=\b|_) && f.length() < 300MB && any{ getMediaInfo(f, '{minutes}').toLong() * 60 * 1000L < 5 min.}{ false /* default if MediaInfo fails */ }) {
		log.fine "Skip short trailer video: $f"
		return false
	}
also afaik local trailer files is ONLY for movies ?

btw:
https://www.themoviedb.org/search?query=trailer

EDIT: I tested with "-Trailer" in AMC with a 0 byte file "Trailer.Park.Boys.S01E01.avi"
in strict mode it deletes the file:

"FROM amc - Parameter: minFileSize = 0
FROM amc - Parameter: minLengthMS = 0
FROM amc - Argument[0]: D:\test\tv
FROM amc - Input: D:\test\tv\Trailer.Park.Boys.S01E01.avi
Group: [tvs:trailer park boys] => [Trailer.Park.Boys.S01E01.avi]
..
Rank [Trailer Park Boys] => [Trailer Park Boys, Trailer Park Boys Podcast, Trailer Park Boys: Out of the Park]
CmdlineException: Multiple options: Advanced auto-selection requires -non-strict matching: [Trailer Park Boys, Trailer Park Boys Podcast, Trailer Park Boys: Out of the Park]
Clean clutter files and empty folders
Delete D:\test\tv\Trailer.Park.Boys.S01E01.avi
Finished without processing any files
Failure (°_°)"

so "cleaner.groovy" need to be updated to

EDIT EDIT:
Plex uses the trailer files:
https://support.plex.tv/hc/en-us/articl ... ets-Movies
https://support.plex.tv/hc/en-us/articl ... ers-Extras

Re: No autorenaming of "Trailer Park Boys"?

Posted: 26 Jul 2017, 03:14
by rednoah
The amc script is more strict than FileBot when it comes to filtering out files before processing. You won't be able to process this one particular show with the amc script.

Re: No autorenaming of "Trailer Park Boys"?

Posted: 06 Mar 2019, 01:41
by Armand
Sorry for resurrecting this old thread, but it seems that "Trailerpark Boys" works okay.

Re: No autorenaming of "Trailer Park Boys"?

Posted: 06 Mar 2019, 04:45
by rednoah
"Trailer Park" doesn't work, because "Trailer" appears as distinct keyword.

"Trailerpark" works because it's a distinct word not on the blacklist.

Re: No autorenaming of "Trailer Park Boys"?

Posted: 01 Aug 2022, 12:37
by rednoah
rednoah wrote: 01 Apr 2022, 11:48 The amc script will ignore clutter files with extreme prejudice (e.g. any file path that contains the "trailer" keyword) so we can pick those out ahead of time and process them separately:

Code: Select all

filebot -rename -r /input --output /output --format "{plex}" --db TheMovieDB::TV --order Airdate --file-filter "fn =~ /Trailer.Park.Boys/" --q 03796
:arrow: [DOCS] How do I process specific files with specific command-line options?