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