Search found 1017 matches

by kim
29 Jul 2020, 12:55
Forum: Episode / Movie Naming Scheme
Topic: How to match "year - director - moviename.ext"
Replies: 8
Views: 489

Re: How to match "year - director - moviename.ext"

Use Plain File Mode to pre-process your files into nice Name (Year) patterns first before matching them against TheMovieDB in a second step: {fn.after(" - ").after(" - ")} ({fn.before(" - ")}) When I create a preset (Named Movies and set datasource to TheMovieDB) and try {fn.replaceAll(/(^(?:19|20)...
by kim
28 Jul 2020, 12:09
Forum: Episode / Movie Naming Scheme
Topic: How to match "year - director - moviename.ext"
Replies: 8
Views: 489

Re: How to match "year - director - moviename.ext"

or with regex

Code: Select all

{fn.replaceAll(/(^(?:19|20)\d{2}) - (.+) - (.+)$/),'$3 ($1) - $2'}
Peace and Love (1984) - James Cameron
by kim
27 Jul 2020, 16:52
Forum: Help and Support
Topic: Rename with exisiting info regardless if there is a "tag" missing
Replies: 3
Views: 330

Re: Rename with exisiting info regardless if there is a "tag" missing

Code: Select all

{plex.derive{' ' + tags.join(' ')}{' [' + allOf{vf}{source}{hdr}{ac}{channels}{vc.replace('AVC','x264').replace('HEVC','x265')}.join(' - ') + ']'}.tail}

search and you will find ;)
newbie help - naming UHD or 4K or 2160p and REMUX plus more
by kim
22 Jul 2020, 20:21
Forum: Help and Support
Topic: A null collection folder is created when there is no collection
Replies: 4
Views: 495

Re: A null collection folder is created when there is no collection

quick fix: change to

Code: Select all

new File(it+'/Movies/'+any{collection+'/'}{'/'})
or

Code: Select all

new File(it + any{'/Movies/' + collection}{'/Movies'})
by kim
22 Jul 2020, 20:09
Forum: Help and Support
Topic: Invaild XML Error
Replies: 32
Views: 24475

Re: Invaild XML Error

yes
"301 Moved Permanently" = move from http:// to httpS://
by kim
20 Jul 2020, 11:21
Forum: Episode / Movie Naming Scheme
Topic: Renaming Children's Shows with multiple episode names per airing
Replies: 8
Views: 621

Re: Renaming Children's Shows with multiple episode names per airing

already done this ;) {n}{def fileSet = episodelist.findAll{ airdate == it.airdate }; ' - S' + s.pad(2) + 'E' + fileSet.episode.min().pad(2) + '-E' + fileSet.episode.max().pad(2) + ' - ' + fileSet.title.join(' & ') } detecting multi episodes?!?! output Daniel Tiger's Neighborhood - S04E11-E12 - Danie...
by kim
19 Jul 2020, 23:02
Forum: Scripting and Automation
Topic: [HELP] Format chain fails
Replies: 6
Views: 455

Re: [HELP] Format chain fails

this is wrong {any{ '[' + fn.matchAll(/Erai-raws|Puyasubs/)*."some that can define $group"} {"[$group]/"}/ SyntaxError: missing token: } remember to test format in the GUI { any{'one'}{'two'} } so: { any{fn.matchAll(/Erai-raws|Puyasubs/)}{"[$group]"} } btw Erai-raws and Puyasubs should be on the gro...
by kim
19 Jul 2020, 16:13
Forum: Scripting and Automation
Topic: [HELP] Format chain fails
Replies: 6
Views: 455

Re: [HELP] Format chain fails

Code: Select all

{(audio.size() > 2 
	? 'Multi'
	: audio.size() > 1
		? 'Dual'
		: any{audio.language[0].replaceFirst(/es|spa|sp/, 'Spa').replaceFirst(/eng|en/, 'Eng').replaceFirst(/jp|ja/, 'Jap')}{'UNKNOWN'}) + ' - '}
by kim
17 Jul 2020, 11:17
Forum: Scripting and Automation
Topic: [HELP] Format chain fails
Replies: 6
Views: 455

Re: [HELP] Format chain fails

Always test in GUI ;) {certification.replaceAll(/^\d+$/, 'PG-$0')}/ {genre}/ {(audio.size() > 2 ? 'Multi' : audio.size() > 1 ? 'Dual' : audio.language[0].replaceFirst(/es|spa|sp/, 'Spa').replaceFirst(/eng|en/, 'Eng').replaceFirst(/jp|ja/, 'Jap')) + ' - '} {text.Language.contains('en') ? 'Eng':''} {t...
by kim
15 Jul 2020, 11:26
Forum: Episode / Movie Naming Scheme
Topic: Multiple audio tracks with different codecs and languages
Replies: 71
Views: 24869

Re: Multiple audio tracks with different codecs and languages

try replacing the top part with: { import net.filebot.Language; def preferredLang = Language.findLanguage(info.OriginalLanguage).ISO3.upperInitial() but because of e.g. iso_639_1=nl iso_639_3=nld iso_639_2B=dut tag=nl-NL names=[Dutch] { import net.filebot.Language; def preferredLang = Language.findL...
by kim
05 Jul 2020, 23:21
Forum: Episode / Movie Naming Scheme
Topic: newbie help - naming UHD or 4K or 2160p and REMUX plus more
Replies: 20
Views: 1485

Re: newbie help - naming UHD or 4K or 2160p and REMUX plus more

Code: Select all

{plex.derive{' ' + tags.join(' ')}{' [' + allOf{vs}{vf}{hdr}{ac}{channels}{vc.replace('AVC','x264').replace('HEVC','x265')}{fn.match(/REMUX/).upper()}.join(' ') + ']' + {'-' + group}}.tail}
by kim
03 Jul 2020, 15:03
Forum: Help and Support
Topic: NullPointer Exception Windows 10 ID3 or Automatic Music
Replies: 10
Views: 574

Re: NullPointer Exception Windows 10 ID3 or Automatic Music

if filename has the info and missing the ID3 you can use (or vice versa) e.g. MP3TAG to rename or add the ID3 info
https://www.mp3tag.de/en/
by kim
29 Jun 2020, 16:52
Forum: Episode / Movie Naming Scheme
Topic: No season folder for miniseries?
Replies: 8
Views: 1161

Re: No season folder for miniseries?

Code: Select all

{n}{sc == 1 && ('Mini-Series' in genres || info.status == 'Ended') ? '' : "/Season ${s.pad(2)}"}{'/'+plex.name}
btw: Missing on TV

Code: Select all

{info.keywords}
by kim
29 Jun 2020, 15:33
Forum: Episode / Movie Naming Scheme
Topic: Conditional Structures (if-then-else)
Replies: 28
Views: 21015

Re: Conditional Structures (if-then-else)

Code: Select all

{ny}{'/Season ' + s.pad(2)}{'/' + ny}{' - ' + s00e00}{' - ' + t}{allOf{vf}{source}{vc}{bitdepth == 10 ? ' 10-bit' : ''}{ac}{channels}{group}.joining(' ', ' [', ']')}
by kim
27 Jun 2020, 00:54
Forum: Episode / Movie Naming Scheme
Topic: No season folder for miniseries?
Replies: 8
Views: 1161

Re: No season folder for miniseries?

Miniseries =
"a limited run program of more than two and less than the 13-part season"

genre Mini-Series list
https://thetvdb.com/genres/mini-series

keyword "Miniseries" list
https://www.themoviedb.org/keyword/11162-miniseries/tv
by kim
18 Jun 2020, 21:08
Forum: Episode / Movie Naming Scheme
Topic: Movie Renaming Expression for "Studio" ?
Replies: 8
Views: 1070

Re: Movie Renaming Expression for "Studio" ?

doing same thing different { info.productionCompanies =~ /Studio Ghibli/ ? 'Ghibli Collection' : info.productionCompanies =~ /Pixar/ ? 'Pixar Collection' : info.productionCompanies =~ /Marvel Studios/ ? 'MCU Collection' : '' } { any{ def pc = info.productionCompanies; (pc =~ /Studio Ghibli/ ? 'Ghibl...
by kim
18 Jun 2020, 06:05
Forum: Episode / Movie Naming Scheme
Topic: Movie Renaming Expression for "Studio" ?
Replies: 8
Views: 1070

Re: Movie Renaming Expression for "Studio" ?

Code: Select all

{info.productionCompanies}
by kim
17 Jun 2020, 01:14
Forum: Help and Support
Topic: Replace / not working
Replies: 5
Views: 520

Re: Replace / not working

so ?

Code: Select all

{'artist 1/.artist 2'.slash(', ')}
try

Code: Select all

{'artist 1/.artist 2'.replaceAll('/.', ', ')}
by kim
15 Jun 2020, 18:41
Forum: Episode / Movie Naming Scheme
Topic: Source Media {vs} and {source}
Replies: 16
Views: 11681

Re: Source Media {vs} and {source}

it's Regular Expressions
https://regexr.com/

Code: Select all

\d{3,4}[p]
= e.g. 720p or 1080p
by kim
15 Jun 2020, 18:37
Forum: Episode / Movie Naming Scheme
Topic: newbie help - naming UHD or 4K or 2160p and REMUX plus more
Replies: 20
Views: 1485

Re: newbie help - naming UHD or 4K or 2160p and REMUX plus more

I do not recommend having too much in folder name title year tags... all else in filename only... but this will give you most of it: {'D:/'}{plex.name}{allOf{tags.join(', ')}{vs}{hd}{fn.match(/REMUX/)}.joining('] [', ' [', ']')} or {'D:/'}{plex.name}{allOf{tags.join(', ')}{any{vs}{'BluRay'}}{hd}{fn....
by kim
15 Jun 2020, 01:11
Forum: Episode / Movie Naming Scheme
Topic: Source Media {vs} and {source}
Replies: 16
Views: 11681

Re: Source Media {vs} and {source}

it's not format code standardized = {vs} correct way ;) = {source} but you can use this: {fn.replaceAll(/(?i)(?:(?:ABC|ATVP|AMZN|BBC|CBS|CC|CR|CW|DCU|DSNP|DSNY|FBWatch|FREE|FOX|HMAX|HULU|iP|LIFE|MTV|NBC|NICK|NF|RED|TF1|STZ)[.-])?(?:WEB.?DL|WEB.?DLRip|WEB.?Cap|WEB.?Rip|HC|HD.?Rip|VODR|VODRip|PPV|PPVR...
by kim
14 Jun 2020, 21:40
Forum: Episode / Movie Naming Scheme
Topic: Source Media {vs} and {source}
Replies: 16
Views: 11681

Re: Source Media {vs} and {source}

VODR|VODRip WEB-DL (?:(?:ABC|ATVP|AMZN|BBC|CBS|CC|CR|CW|DCU|DSNP|DSNY|FBWatch|FREE|FOX|HMAX|HULU|iP|LIFE|MTV|NBC|NICK|NF|RED|TF1|STZ)[.-])?(?:WEB.?DL|WEB.?DLRip|WEB.?Cap|WEB.?Rip|HC|HD.?Rip|VODR|VODRip|PPV|PPVRip|iTunesHD|ithd|AmazonHD|NetflixHD|NetflixUHD|(?<=\d{3,4}[p].)WEB|WEB(?=.[hx]\d{3})) so ...
by kim
12 Jun 2020, 16:38
Forum: Feature Requests and Bug Reports
Topic: Request: Collections extras (url & cover)
Replies: 8
Views: 806

Re: Request: Collections extras (url & cover)

myabe something like:

Code: Select all

{
	if (folder instanceof Collection) {
		getCollectionInfo()
	}
}
FYI: KODI set info
https://kodi.wiki/view/Movie_sets_artwork
by kim
12 Jun 2020, 02:46
Forum: Feature Requests and Bug Reports
Topic: Request: Collections extras (url & cover)
Replies: 8
Views: 806

Re: Request: Collections extras (url & cover)

This should be easy because the info is in the main movie lookup

e.g.

Code: Select all

"belongs_to_collection":{"id":87096,"name":"Avatar Collection","poster_path":"/nslJVsO58Etqkk17oXMuVK4gNOF.jpg","backdrop_path":"/8nCr9W7sKus2q9PLbYsnT7iCkuT.jpg"}
https://developers.themoviedb.org/3/mov ... ie-details