Search found 964 matches

by kim
02 Jun 2020, 00:33
Forum: Scripting and Automation
Topic: Web Sources
Replies: 13
Views: 1047

Re: Web Sources

Code: Select all

{
	any{ def file = new File("C:/websources.txt")
	def websources = file.exists() ? lines(file).join('|') : null 
	source ==~ /WEB.*/ ? lfr = fn.match(/($websources)\.(?i)WEB/) : ''

	return allOf{fn.match(/(?i)(UHD).$source/).upper()}{lfr}{source}.join('.')
	}{source}
}
output e.g.
NF.WEB-DL
by kim
31 May 2020, 16:00
Forum: Episode / Movie Naming Scheme
Topic: MultiCD naming: {pi} VS {fn.match(/CD\d/)}
Replies: 12
Views: 16474

Re: MultiCD naming: {pi} VS {fn.match(/CD\d/)}

I'm not an encoder expert, so I don't know why they did it like this, but many did it
when CD's was king, avi files (xvid) at 700MB was the #1 rule (at least the cd1)
by kim
31 May 2020, 15:47
Forum: Episode / Movie Naming Scheme
Topic: MultiCD naming: {pi} VS {fn.match(/CD\d/)}
Replies: 12
Views: 16474

Re: MultiCD naming: {pi} VS {fn.match(/CD\d/)}

Yes we will... here is a hint ;)

Code: Select all

FileSize                   : 733769728
FileSize/String            : 700 MiB
by kim
30 May 2020, 20:09
Forum: Help and Support
Topic: Preserve part of a filename
Replies: 5
Views: 91

Re: Preserve part of a filename

I only tested with ep 47, but try this: {n}{' - S01E' + absolute}{' - ' + episodelist.findAll{(absolute-23) == it.absolute }.title.join()} or {n}{' - S01E' + absolute}{' - ' + episodelist.findAll{(fn.match(/S01E(\d+)/).toInteger())-23 == it.absolute }.title.join()} or {n}{' - S01E' + absolute}{' - '...
by kim
30 May 2020, 15:25
Forum: Help and Support
Topic: Preserve part of a filename
Replies: 5
Views: 91

Re: Preserve part of a filename

You will not have an easy time with this show
1. looks like your files use the absolute order
2. you use italiano
by kim
29 May 2020, 17:40
Forum: Scripting and Automation
Topic: --apply nfo url
Replies: 7
Views: 111

Re: --apply nfo url

Create a link to IMDb site for each movie, at movie's folder https://www.filebot.net/forums/viewtopic.php?f=6&t=501#p44629 Simple movie.nfo file creation https://www.filebot.net/forums/viewtopic.php?t=501#p3385 Help to create simple NFO script https://www.filebot.net/forums/viewtopic.php?f=4&t=9568#...
by kim
28 May 2020, 12:55
Forum: Help and Support
Topic: info.OriginalLanguage displayLanguage problem
Replies: 6
Views: 98

Re: info.OriginalLanguage displayLanguage problem

this user (@26may) https://www.themoviedb.org/u/Breat?language=en-US does not know how things work at tmdb.... it's not part of this collection but is part of https://www.themoviedb.org/movie/465404-the-adventures-of-tintin-sequel FYI: https://www.themoviedb.org/collection/561263-les-aventures-de-ti...
by kim
27 May 2020, 16:48
Forum: Help and Support
Topic: Courses
Replies: 5
Views: 101

Re: Courses

Code: Select all

{def ss = f.parentFile.name.replaceAll(/.+\s(\d+)$/,'$1'); fn.replaceAll(/(\d+).\s(.+)/, {match -> match[2] + '/' + 'Season ' + ss.pad(2) + '/' + match[2] + ' - S' + ss.pad(2) + 'E' + match[1].pad(2)})}
by kim
27 May 2020, 00:29
Forum: Help and Support
Topic: Courses
Replies: 5
Views: 101

Re: Courses

your "structure" is not what you said = fail

Code: Select all

{def ss = f.parentFile.name.replaceAll(/.+(\d+$)/,'$1'); fn.replaceAll(/(\d+).\s(.+)/, {match -> match[2] + '/' + 'Season ' + ss.pad(2) + '/' + match[2] + ' - S' + ss.pad(2) + 'E' + match[1].pad(2)})}
by kim
26 May 2020, 19:49
Forum: Help and Support
Topic: Courses
Replies: 5
Views: 101

Re: Courses

must be a real show or i don't think plex "can identify" but if you wanna rename you can use this format (in F2 mode/plain file mode https://www.filebot.net/forums/viewtopic.php?t=2072 ): {def ss = f.parentFile.name.replaceAll(/.+(\d+$)/,'$1'); fn.replaceAll(/(\d+).\s(\w+\s)(\d+$)/, {match -> match[...
by kim
25 May 2020, 05:04
Forum: Episode / Movie Naming Scheme
Topic: Using {model} for dealing with collections holistically
Replies: 11
Views: 340

Re: Using {model} for dealing with collections holistically

I think you are looking for something like this?

Code: Select all

{ any{model.movie.containsAll(movie.collection) && movie.collection.size() ==  model.movie.unique().size() ? collection + ' [complete]/' : collection + ' [incomplete]/' }{''}}{ny}
by kim
25 May 2020, 04:37
Forum: Episode / Movie Naming Scheme
Topic: Using {model} for dealing with collections holistically
Replies: 11
Views: 340

Re: Using {model} for dealing with collections holistically

the simple

Code: Select all

{movie.collection.size() ==  model.movie.unique().size() ? '[complete]' : '[incomplete]'}
by kim
25 May 2020, 04:32
Forum: Episode / Movie Naming Scheme
Topic: Using {model} for dealing with collections holistically
Replies: 11
Views: 340

Re: Using {model} for dealing with collections holistically

small change

Code: Select all

{movie.collection.size() == 1 ? 'only 1 movie on list' : '2 or more' }
by kim
25 May 2020, 03:17
Forum: Episode / Movie Naming Scheme
Topic: A little help with my naming script
Replies: 4
Views: 64

Re: A little help with my naming script

what version of filebot are you using ? because I think you are using an old mediainfo file (lower then 19.04 i think) the easy fix is: add .replaceAll(/\//, '+') like so allOf{audioCodec}{any{ChannelString}{channels}}.join(' ').replaceAll(/\//, '+') if you use newer mediainfo then try my 'e.g.' fro...
by kim
24 May 2020, 23:09
Forum: Episode / Movie Naming Scheme
Topic: A little help with my naming script
Replies: 4
Views: 64

Re: A little help with my naming script

what does this mean ? I recently started using it on my new linux GCP VM but it would seem there is one part of this naming does not carry over very well (the "/" causes it to create a new sub folder). Anyone able to help re jig this so that rather than a / it - or + or even just a space. are you us...
by kim
23 May 2020, 19:28
Forum: Feature Requests and Bug Reports
Topic: Show if target directory already exists
Replies: 5
Views: 80

Re: Show if target directory already exists

maybe you can use this?

Code: Select all

{folder.exists() ? 'STOP' : 'Go on'}
or

Code: Select all

{f.parentFile.exists() ? 'STOP' : 'Go on'}
by kim
22 May 2020, 00:21
Forum: Help and Support
Topic: Issues with AMC and TV Shows
Replies: 3
Views: 89

Re: Issues with AMC and TV Shows

try removing

Code: Select all

--db TheMovieDB \
Movie

Code: Select all

TheMovieDB
TV

Code: Select all

TheMovieDB::TV
by kim
20 May 2020, 01:43
Forum: Help and Support
Topic: Help with If Then Else Syntax
Replies: 3
Views: 71

Re: Help with If Then Else Syntax

like so ?

Code: Select all

R:/Movies/{ny}/{ext == 'srt' ? 'subs/' + fn : ny + ' - ' + allOf{vf}{vs}{vc}{ac}{channels}.join(' ')}
by kim
18 May 2020, 21:09
Forum: Help and Support
Topic: Issue with series being detected incorrectly
Replies: 7
Views: 183

Re: Issue with series being detected incorrectly

looks like it does not filter "s157e07" and then know it's a show ? Query Movie => [house hunters international s157e07 more than meets the eye in male, house hunters international s157e07 more than meets the eye in] Rank [House Hunters International S157E07 More Than Meets the Eye in, House Hunters...
by kim
16 May 2020, 19:50
Forum: Scripting and Automation
Topic: automating foreign and kids movies
Replies: 5
Views: 147

Re: automating foreign and kids movies

my format already does this

btw: (same info on themoviedb)
and it's
"Language: English | Spanish"
so if you got "Language: Spanish | English" you cant trust the order
by kim
16 May 2020, 17:44
Forum: Episode / Movie Naming Scheme
Topic: Rename and move Subtitles properly?
Replies: 7
Views: 2043

Re: Rename and move Subtitles properly?

FYI: VOSTFR Stands for "Version Originale Sous-Titrée en FRançais" which means "original version (i.e. not dubbed) with French subtitles". Often added to video file names. Sometimes you can also see "VOSTFrench", probably to make it clearer for non-Frenchmen. Just "VOST" can also be used if it's cle...
by kim
16 May 2020, 17:26
Forum: Scripting and Automation
Topic: AMC Not Matching Titles Using TVDB (due to broken custom format)
Replies: 3
Views: 145

Re: AMC Not Matching Titles Using TVDB (due to broken custom format)

{n =~ /^[0-9a-qA-Q].*/ ? 'I' : 'K'}{ ':/Television/'}{n.upperInitial()}{'/Season ' + s.pad(2)}{'/' + n.upperInitial()}{' ' + s.pad(2) + 'x' + es*.pad(2).join('-')}{' - ' + t.upperInitial().replacePart(replacement = ', Part $1')}{' '+fn.match(/\(Part \d+/)}{' of (' + model.episode.count{ it == episo...
by kim
16 May 2020, 01:43
Forum: Scripting and Automation
Topic: automating foreign and kids movies
Replies: 5
Views: 147

Re: automating foreign and kids movies

try {genres.contains(/Animation/) ? 'Kids': !languages[0].toString().contains(/eng/) ? 'Foreign' : 'other'} other you can look at {info.ProductionCountries}{info.SpokenLanguages}{info.OriginalLanguage} {genres.contains(/Animation/) ? 'Kids': !languages[0].toString().contains(/eng/) || info.Productio...
by kim
14 May 2020, 20:01
Forum: Episode / Movie Naming Scheme
Topic: [allOf] separators customization
Replies: 5
Views: 113

Re: Learn how {expressions} work and useful Helper Functions

the easy way:

Code: Select all

{(' ['+allOf{vs.match(/BluRay/)}{vf.match(/720p|1080p/)}.join('-')+']').replaceAll(/\[\]/)}