No autorenaming of "Trailer Park Boys"?

Any questions? Need some help?
Post Reply
andifso
Posts: 12
Joined: 13 Dec 2013, 08:40

No autorenaming of "Trailer Park Boys"?

Post 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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: No autorenaming of "Trailer Park Boys"?

Post 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
:idea: Please read the FAQ and How to Request Help.
andifso
Posts: 12
Joined: 13 Dec 2013, 08:40

Re: No autorenaming of "Trailer Park Boys"?

Post by andifso »

thanks rednoah, worked perfectly!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: No autorenaming of "Trailer Park Boys"?

Post 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?
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: No autorenaming of "Trailer Park Boys"?

Post 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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: No autorenaming of "Trailer Park Boys"?

Post 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.
:idea: Please read the FAQ and How to Request Help.
Armand
Posts: 1
Joined: 26 Nov 2017, 23:04

Re: No autorenaming of "Trailer Park Boys"?

Post by Armand »

Sorry for resurrecting this old thread, but it seems that "Trailerpark Boys" works okay.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: No autorenaming of "Trailer Park Boys"?

Post 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.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: No autorenaming of "Trailer Park Boys"?

Post 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?
:idea: Please read the FAQ and How to Request Help.
Post Reply