Search found 1251 matches
- 03 Oct 2021, 17:50
- Forum: Windows
- Topic: remove only the primaryTitle year
- Replies: 22
- Views: 26469
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...
- 02 Oct 2021, 17:23
- Forum: Windows
- Topic: remove only the primaryTitle year
- Replies: 22
- Views: 26469
Re: remove only the primaryTitle year
then this should do it
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
Code: Select all
{ [n, PrimaryTitle != localize.por.n ? localize.por.n : primaryTitle].unique().join(' - ') }
PrimaryTitle = PrimaryTitle (probably English)
Portuguese = localize.por.n
unique = if same only use n aka English
- 02 Oct 2021, 00:17
- Forum: Windows
- Topic: remove only the primaryTitle year
- Replies: 22
- Views: 26469
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...
- 01 Oct 2021, 23:31
- Forum: Windows
- Topic: Replace : colon with ∶ ratio
- Replies: 8
- Views: 11474
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 ...
- 29 Sep 2021, 23:49
- Forum: Help and Support
- Topic: How to make String.match(regex) case sensitive?
- Replies: 4
- Views: 8087
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...
- 23 Sep 2021, 19:19
- Forum: Help and Support
- Topic: How do I replace colon?
- Replies: 12
- Views: 12726
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...
- 22 Sep 2021, 15:12
- Forum: Help and Support
- Topic: Identify if file has DTS or TureHD audio stream
- Replies: 5
- Views: 8664
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(', ', ' (', ')') }{} ...
- 18 Sep 2021, 02:09
- Forum: Windows
- Topic: saving file to another directory
- Replies: 9
- Views: 12736
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}
you can do this if that what you mean ?Y:\Disney\Pixar\movie 2020
Code: Select all
Y:\{y}\Disney\Pixar\{n} {y}
Y:\2020\Disney\Pixar\movie 2020
- 15 Sep 2021, 23:24
- Forum: macOS
- Topic: issue with renaming multi episode files for plex
- Replies: 2
- Views: 13671
Re: issue with renaming multi episode files for plex
you can try this if renaming file in place only
or
or with path
or
Code: Select all
{plex.tail.name}
Code: Select all
{n} - {s00e00} - {t}
Code: Select all
{f.parent + '/'}{plex.tail.name}
Code: Select all
{f.parent + '/'}{n} - {s00e00} - {t}
- 10 Sep 2021, 01:17
- Forum: Help and Support
- Topic: Possible to remove non-english subtitles from MKV's ??
- Replies: 9
- Views: 11671
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...
- 08 Sep 2021, 22:43
- Forum: Windows
- Topic: [MultiEpisode] Episode renaming 2 episodes in 1
- Replies: 2
- Views: 9329
- 07 Sep 2021, 00:06
- Forum: Episode / Movie Naming Scheme
- Topic: File size
- Replies: 10
- Views: 17655
Re: File size
maybe you find what you need ?
e.g.
Code: Select all
{bytes.properties}
Code: Select all
{bytes.value}
{bytes.MB}
{bytes.k}
{bytes.g}
{bytes.GB}
{bytes.KB}
{bytes.m}
- 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: 9310
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...
- 02 Sep 2021, 13:15
- Forum: Help and Support
- Topic: TVDB API changes
- Replies: 10
- Views: 12501
Re: TVDB API changes
Well Kodi have default tv + movie scraper (for a long time now) = TMDb
- 27 Aug 2021, 18:23
- Forum: Episode / Movie Naming Scheme
- Topic: Why doesn't this Audio script work anymore?
- Replies: 3
- Views: 7497
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:
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
- 26 Aug 2021, 22:33
- Forum: Scripting and Automation
- Topic: How to differentiate between TV series and Documentaries
- Replies: 2
- Views: 4512
Re: How to differentiate between TV series and Documentaries
this show using tvdb ?
https://www.thetvdb.com/series/the-blue-planet
then
=
https://www.thetvdb.com/series/the-blue-planet
then
then use format e.g. :Genres = Documentary
Code: Select all
{genre}/{n} - {s00e00} - {t}
Code: Select all
Documentary/The Blue Planet - S01E05 - Seasonal Seas
- 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: 5375
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 +...
- 25 Aug 2021, 13:59
- Forum: Scripting and Automation
- Topic: Help with this script filebot to fix and to work
- Replies: 3
- Views: 4868
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/...
- 19 Aug 2021, 12:59
- Forum: Help and Support
- Topic: how to get filebot to download ALL available movie posters?
- Replies: 12
- Views: 12943
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...
- 11 Aug 2021, 18:08
- Forum: Episode / Movie Naming Scheme
- Topic: Multiple audio tracks with different codecs and languages
- Replies: 111
- Views: 158275
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' ...
- 07 Jul 2021, 20:35
- Forum: Episode / Movie Naming Scheme
- Topic: HDR Snippet with UTorrent
- Replies: 11
- Views: 12904
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 ...
- 07 Jul 2021, 15:14
- Forum: Episode / Movie Naming Scheme
- Topic: HDR Snippet with UTorrent
- Replies: 11
- Views: 12904
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: ...
- 07 Jul 2021, 01:05
- Forum: Episode / Movie Naming Scheme
- Topic: HDR Snippet with UTorrent
- Replies: 11
- Views: 12904
Re: HDR Snippet with UTorrent
Code: Select all
{s00e00}
Gui or not
try
Code: Select all
{sxe}
Code: Select all
hdr = 'HDR'
Code: Select all
hdr == 'HDR'
- 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: 11559
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)...
- 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: 11559
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\...