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 » 18 Sep 2014, 12:15

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: 15329
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: No autorenaming of "Trailer Park Boys"?

Post by rednoah » 18 Sep 2014, 14:13

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 » 19 Sep 2014, 11:10

thanks rednoah, worked perfectly!

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

Re: No autorenaming of "Trailer Park Boys"?

Post by rednoah » 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.

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: 676
Joined: 15 May 2014, 16:17

Re: No autorenaming of "Trailer Park Boys"?

Post by kim » 25 Jul 2017, 22:19

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: 15329
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: No autorenaming of "Trailer Park Boys"?

Post by rednoah » 26 Jul 2017, 03:14

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 » 06 Mar 2019, 01:41

Sorry for resurrecting this old thread, but it seems that "Trailerpark Boys" works okay.

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

Re: No autorenaming of "Trailer Park Boys"?

Post by rednoah » 06 Mar 2019, 04:45

"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.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests