Search found 1251 matches

by kim
03 Oct 2021, 17:50
Forum: Windows
Topic: remove only the primaryTitle year
Replies: 22
Views: 25789

Re: remove only the primaryTitle year

looks like your default language is NOT set to English like you wrote ? Using default English language preferences, so n is in English. default English {[PrimaryTitle, n != localize.por.n ? '['+n+']' : '['+localize.por.n+']'].unique()*.replaceTrailingBrackets().join(' - ') }/{episode.special ? 'Spec...
by kim
02 Oct 2021, 17:23
Forum: Windows
Topic: remove only the primaryTitle year
Replies: 22
Views: 25789

Re: remove only the primaryTitle year

then this should do it

Code: Select all

{ [n, PrimaryTitle != localize.por.n ? localize.por.n : primaryTitle].unique().join(' - ') }
Using default English language preferences, so n is in English
PrimaryTitle = PrimaryTitle (probably English)
Portuguese = localize.por.n
unique = if same only use n aka English
by kim
02 Oct 2021, 00:17
Forum: Windows
Topic: remove only the primaryTitle year
Replies: 22
Views: 25789

Re: remove only the primaryTitle year

rewrote too working code (not tested), but I don't get the logic here ? { def priT = PrimaryTitle; def ptT = localize.por.n; (priT != ptT && priT == n) ? ptT : (priT == ptT && priT != n) ? n : (priT == ptT && priT == n) ? n : '' } need a sample show/movie prefer what lang ? w...
by kim
01 Oct 2021, 23:31
Forum: Windows
Topic: Replace : colon with ∶ ratio
Replies: 8
Views: 11275

Re: Replace : colon with ∶ ratio

The Rescuers Down Under is the correct name in all places/ languages I can find, so if you REALLY want the colon just rename in windows explorer or replace the {n} with {'the rescuers : down Under'} or {n.replaceAll(/.+/,'the rescuers : down Under')} or {n.replaceAll(/The Rescuers Down Under/,'the ...
by kim
29 Sep 2021, 23:49
Forum: Help and Support
Topic: How to make String.match(regex) case sensitive?
Replies: 4
Views: 7940

Re: How to make String.match(regex) case sensitive?

what about Word Boundaries ? https://www.regular-expressions.info/wordboundaries.html can it match more then one, no... if needed then use matchAll { fn.matchAll(/\b(?-i:ABC|ATVP|AMZN|BBC|CBS|CC|CR|CW|DCU|DSNP|DSNY|Disney[+]|DisneyPlus|FBWatch|FREE|FOX|HBO|HMAX|HULU|iP|LIFE|MTV|NBC|NICK|NF|RED|TF1|S...
by kim
23 Sep 2021, 19:19
Forum: Help and Support
Topic: How do I replace colon?
Replies: 12
Views: 12414

Re: 2 major issue with Filebot

Take a look here: [Plain File Mode] Batch Rename any type of file https://www.filebot.net/forums/viewtopic.php?f=3&t=2072 maybe you can use something like this (rename files the same as the file with biggest file size) { def mainName = folder.listFiles().sort{it.length()}.name.last().nameWithout...
by kim
22 Sep 2021, 15:12
Forum: Help and Support
Topic: Identify if file has DTS or TureHD audio stream
Replies: 5
Views: 8395

Re: Identify if file has DTS or TureHD audio stream

I made some changes to your format: { any{ audio.findAll{it.LanguageString3 == 'eng' && (it.CodecID =~ ('DTS') || it.CodecID =~ 'TRUEHD') }.collect { a -> allOf { a.LanguageString3.upper() } { a.CodecID.removeAll('A_')} { a.Channels + 'ch'} .join('-') }.unique().joining(', ', ' (', ')') }{} ...
by kim
18 Sep 2021, 02:09
Forum: Windows
Topic: saving file to another directory
Replies: 9
Views: 12376

Re: saving file to another directory

We need your format and the output you want e.g.

Code: Select all

Y:\Disney\Pixar\{n} {y}
=
Y:\Disney\Pixar\movie 2020
you can do this if that what you mean ?

Code: Select all

Y:\{y}\Disney\Pixar\{n} {y}
=
Y:\2020\Disney\Pixar\movie 2020
by kim
15 Sep 2021, 23:24
Forum: macOS
Topic: issue with renaming multi episode files for plex
Replies: 2
Views: 12872

Re: issue with renaming multi episode files for plex

you can try this if renaming file in place only

Code: Select all

{plex.tail.name}
or

Code: Select all

{n} - {s00e00} - {t}
or with path

Code: Select all

{f.parent + '/'}{plex.tail.name}
or

Code: Select all

{f.parent + '/'}{n} - {s00e00} - {t}
by kim
10 Sep 2021, 01:17
Forum: Help and Support
Topic: Possible to remove non-english subtitles from MKV's ??
Replies: 9
Views: 11360

Re: Possible to remove non-english subtitles from MKV's ??

I don't see why not you can something like this: { text.collect{[ 'ID': it.StreamKindID, 'Count': it.StreamCount, 'Language': it.LanguageString,'Default': it.Default]} } sample [{ID=0, Count=34, Language=English, Default=Yes}, {ID=1, Count=34, Language=English, Default=No}, {ID=2, Count=34, Language...
by kim
08 Sep 2021, 22:43
Forum: Windows
Topic: [MultiEpisode] Episode renaming 2 episodes in 1
Replies: 2
Views: 9121

Re: Episode renaming 2 episodes in 1

How does Filebot (or you) know that the file is a multi episode ?

search.php?keywords=Multi-Episode
by kim
07 Sep 2021, 00:06
Forum: Episode / Movie Naming Scheme
Topic: File size
Replies: 10
Views: 17476

Re: File size

maybe you find what you need ?

Code: Select all

{bytes.properties}
e.g.

Code: Select all

{bytes.value}
{bytes.MB}
{bytes.k}
{bytes.g}
{bytes.GB}
{bytes.KB}
{bytes.m}
by kim
03 Sep 2021, 16:13
Forum: Scripting and Automation
Topic: Rename movies and send them to folders according to the initial letter of their name
Replies: 4
Views: 9171

Re: Rename movies and send them to folders according to the initial letter of their name

try it: { def mainPath = 'Z:/Cinedriveonline/PELICULAS/' def fileInfo = " - $vf [$mbps] $Languages" def norm = {it.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡')}; def allNorm(path, hard, dir, info){ path + hard + '/' + dir + '/' + dir + info }; def outFull = genres.contains('A...
by kim
02 Sep 2021, 13:15
Forum: Help and Support
Topic: TVDB API changes
Replies: 10
Views: 12030

Re: TVDB API changes

Well Kodi have default tv + movie scraper (for a long time now) = TMDb
by kim
27 Aug 2021, 18:23
Forum: Episode / Movie Naming Scheme
Topic: Why doesn't this Audio script work anymore?
Replies: 3
Views: 7391

Re: Why doesn't this Audio script work anymore?

this is BAD code
8 ch is not = DD+ (aka EAC3)
6 ch is not ? DD (aka AC3)

e.g. 'DTS-HD MA 5.1' becomes DD = FAIL!

maybe look here:
viewtopic.php?f=5&t=5285

btw:

Code: Select all

{af} = 6ch
{af.value} = 6.0
by kim
26 Aug 2021, 22:33
Forum: Scripting and Automation
Topic: How to differentiate between TV series and Documentaries
Replies: 2
Views: 4424

Re: How to differentiate between TV series and Documentaries

this show using tvdb ?
https://www.thetvdb.com/series/the-blue-planet

then
Genres = Documentary
then use format e.g. :

Code: Select all

{genre}/{n} - {s00e00} - {t}
=

Code: Select all

Documentary/The Blue Planet - S01E05 - Seasonal Seas
by kim
26 Aug 2021, 22:25
Forum: Scripting and Automation
Topic: Add it to delete scanned film or move it to another place due to duplication
Replies: 3
Views: 5215

Re: Add it to delete scanned film or move it to another place due to duplication

This took some time... try it out: edit mainPath and altPath first { def mainPath = 'D:/Filmz/' def altPath = 'D:/Other/' def fileInfo = " - $vf [$mbps] $Languages" def norm = {it.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡')}; def allNorm(path, hard, dir, info){ path + hard +...
by kim
25 Aug 2021, 13:59
Forum: Scripting and Automation
Topic: Help with this script filebot to fix and to work
Replies: 3
Views: 4754

Re: Help with this script filebot to fix and to work

do something like this: { def norm = {it.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + ' (' + y + ') / ' + it.colon(' - ').replaceAll(/[?]/, '¿').replaceAll(/[!]/, '¡') + ' (' + y + ') - ' + vf + ' [' + mbps + '] ' + {Languages}}; genres.contains('Animación') ? '2.PELICULAS ANIMACION/...
by kim
19 Aug 2021, 12:59
Forum: Help and Support
Topic: how to get filebot to download ALL available movie posters?
Replies: 12
Views: 12734

Re: how to get filebot to download ALL available movie posters?

looks like it requires the files to be processed by filebot aka contain XATTR metadata or no worky def m = f.metadata for the download part you can use code from https://github.com/filebot/scripts/blob/master/lib/htpc.groovy remember is matters what names the files have and maybe need to be in a sub...
by kim
11 Aug 2021, 18:08
Forum: Episode / Movie Naming Scheme
Topic: Multiple audio tracks with different codecs and languages
Replies: 110
Views: 151672

Re: Multiple audio tracks with different codecs and languages

this was not easy... but give it a try: { def preferredLang = 'FR' def useChFilter = false def filter = { [it.lang, it.codec, it.ch, it.objects].findAll() } def codecList = [ 'MPEG Audio' : 'MP2', 'MP3' : 'MP3', 'PCM' : 'PCM', 'FLAC' : 'FLAC', 'AAC LC' : 'AAC', 'AAC LC SBR' : 'AAC', 'AAC LC SBR PS' ...
by kim
07 Jul 2021, 20:35
Forum: Episode / Movie Naming Scheme
Topic: HDR Snippet with UTorrent
Replies: 11
Views: 12785

Re: HDR Snippet with UTorrent

{hdr = 'HDR' ? allOf{vf}{af}{vc}{ac}{VIDEO[0].HDR_format_commercial}.join('.') : allOf{vf}{af}{vc}{ac}.join('.')} with { any{allOf{vf}{af}{vc}{ac}{VIDEO[0].HDR_format_commercial}.join('.')} {allOf{vf}{af}{vc}{ac}.join('.')} } this handle error,but if no errors maybe you can get away with only this ...
by kim
07 Jul 2021, 15:14
Forum: Episode / Movie Naming Scheme
Topic: HDR Snippet with UTorrent
Replies: 11
Views: 12785

Re: HDR Snippet with UTorrent

In testing older movies without an HDR field even available it said the field was undefined when I used the double equal. It's works as expected on all files with the single =. use this: { any{allOf{vf}{af}{vc}{ac}{VIDEO[0].HDR_format_commercial}.join('.')} {allOf{vf}{af}{vc}{ac}.join('.')} } FYI: ...
by kim
07 Jul 2021, 01:05
Forum: Episode / Movie Naming Scheme
Topic: HDR Snippet with UTorrent
Replies: 11
Views: 12785

Re: HDR Snippet with UTorrent

Code: Select all

{s00e00}
= e.g. S01E23 NOT S1E23
Gui or not

try

Code: Select all

{sxe}
wrong

Code: Select all

hdr = 'HDR'
ok

Code: Select all

hdr == 'HDR'
by kim
04 Jul 2021, 19:05
Forum: Scripting and Automation
Topic: How can I use a variable from one include() script in another include() script?
Replies: 8
Views: 11375

Re: How can I use a variable from one include() script in another include() script?

main: include ('Constants') println Constants() Constants: def Constants() { String airDateOrderMatcherRegexStatic = /(?i)\b(?<![\.\[(])((S\d{1,2}|\d{1,2})(?>\.|\s)?([ExS]\d{1,4})[_]?(?>v\d{1,2})?)\b(?![\.\])=])/ String airDateOrderMatcherRegexPublic = /(?i)\b(?<![\.\[(])((S\d{1,2}|\d{1,2})(?>\.|\s)...
by kim
04 Jul 2021, 12:39
Forum: Scripting and Automation
Topic: How can I use a variable from one include() script in another include() script?
Replies: 8
Views: 11375

Re: How can I use a variable from one include() script in another include() script?

Including a groovy script in another groovy: https://stackoverflow.com/questions/9136328/including-a-groovy-script-in-another-groovy for global var. to work it needs to like this (outside any function) airDateOrderMatcherRegex = /(?i)\b(?<![\.\[(])((S\d{1,2}|\d{1,2})(?>\.|\s)?([ExS]\d{1,4})[_]?(?>v\...