Search found 997 matches

by kim
03 Aug 2020, 23:26
Forum: Episode / Movie Naming Scheme
Topic: How to distinguish Subtitles from Groupname?
Replies: 3
Views: 55

Re: How to distinguish Subtitles from Groupname?

maybe you can use? { def order = ['Horror': 1, 'Animation': 2, 'Comedy': 3, 'Science Fiction': 4, 'Action': 5, 'Adventure': 6].withDefault{ 100 } def map = ['Science Fiction': 'SciFi'] def genres = localize.eng.genres.toSorted{ order[it] }*.replace(map) genres.first()+ ' Movies' } Custom Collections...
by kim
03 Aug 2020, 22:45
Forum: Episode / Movie Naming Scheme
Topic: How to distinguish Subtitles from Groupname?
Replies: 3
Views: 55

Re: How to distinguish Subtitles from Groupname?

{fileFolder='dude'} = 'dude'
{fileFolder} = new {} = null

it only works IF within same {}
by kim
02 Aug 2020, 19:37
Forum: Help and Support
Topic: db.anidb.id, AnimeList.anidb.id inconsistency when using --mapper AnimeList.AniDB with theTVDB database
Replies: 6
Views: 131

Re: db.anidb.id, AnimeList.anidb.id inconsistency when using --mapper AnimeList.AniDB with theTVDB database

Code: Select all

<anime anidbid="14086" tvdbid="347734" defaulttvdbseason="1"><name>Super Dragon Ball Heroes</name><tvdbname>Super Dragon Ball Heroes</tvdbname></anime>
I think it's something with the season
season 1 = OK
season 3 =
Mapping not found
by kim
31 Jul 2020, 00:18
Forum: Episode / Movie Naming Scheme
Topic: Multiple audio tracks with different codecs and languages
Replies: 71
Views: 23080

Re: Multiple audio tracks with different codecs and languages

looks ok

the only thing is choice one and maybe one more as backup

Code: Select all

{bestPreferredLang}{defaultStream}{bestBitRate}{preferredStream}
by kim
30 Jul 2020, 17:45
Forum: Episode / Movie Naming Scheme
Topic: Multiple audio tracks with different codecs and languages
Replies: 71
Views: 23080

Re: Multiple audio tracks with different codecs and languages

very easy just replace the {ac}{channels} like so: {plex.derive{' ' + tags.join(' ')}{' [' + allOf{vs}{vf}{hdr}{ def preferredLang = 'Eng' def useChFilter = false def filter = { [it.codec, it.ch, it.objects, it.lang] } def codecList = [ 'MP3' : 'MP3', 'PCM' : 'PCM', 'AAC LC' : 'AAC', 'AAC LC SBR' : ...
by kim
29 Jul 2020, 12:55
Forum: Episode / Movie Naming Scheme
Topic: How to match "year - director - moviename.ext"
Replies: 8
Views: 122

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: 122

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: 78

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: 146

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: 22352

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: 200

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: 189

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: 189

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: 189

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: 23080

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: 837

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: 306

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: 883

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: 19486

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: 883

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: 803

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: 803

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: 426

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: 14
Views: 10149

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