I can't for the life of me get this to work. I have a much more complex naming scheme, but let's focus just on the name for now.
I'm currently just testing in the GUI version. Filebot is set to default to English.
i.e running this code:
Code: Select all
{audio.language =~ /no/ ? localize.no.n : n}Code: Select all
Peppa.Gris.S01E01.720p.WEB-DL.x264.mkvI have verified that the file only has one audiotrack and is tagged with the language.
Code: Select all
 mediainfo /Volumes/test/filebot/testmedia/series/Peppa.Gris.S01E01.720p.WEB-DL.x264.mkv
General
Unique ID                                : 246321013262533871862882142241173804579 (0xB94FB397F4B138D746156BBCC8A01623)
Complete name                            : /Volumes/test/filebot/testmedia/series/Peppa.Gris.S01E01.720p.WEB-DL.x264.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 66.0 MiB
Duration                                 : 10 min 36 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 870 kb/s
Writing application                      : Lavf57.55.100
Writing library                          : Lavf57.55.100
ErrorDetectionType                       : Per level 1
Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 10 min 36 s
Bit rate                                 : 741 kb/s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.032
Stream size                              : 56.2 MiB (85%)
Writing library                          : x264 core 148 r2721 72d53ab
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language                                 : Norwegian
Default                                  : Yes
Forced                                   : No
Audio
ID                                       : 2
Format                                   : Vorbis
Format settings, Floor                   : 1
Codec ID                                 : A_VORBIS
Duration                                 : 10 min 36 s
Bit rate mode                            : Variable
Bit rate                                 : 112 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Compression mode                         : Lossy
Delay relative to video                  : -83 ms
Stream size                              : 8.49 MiB (13%)
Writing application                      : Lavc57.63.103
Writing library                          : libVorbis (⛄⛄⛄⛄) (20150105 (⛄⛄⛄⛄))
Language                                 : Norwegian
Default                                  : Yes
Forced                                   : No
Text
ID                                       : 3
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 10 min 18 s
Language                                 : Norwegian
Default                                  : No
Forced                                   : No

 We could make nb an alias of no, but that would just result in nb | Norwegian Bokmål defaulting to no
 We could make nb an alias of no, but that would just result in nb | Norwegian Bokmål defaulting to no  However, a complex tree structure of language families and defaults is unfortunately not supported nor planned as far as FileBot is concerned.
 However, a complex tree structure of language families and defaults is unfortunately not supported nor planned as far as FileBot is concerned. Please read the
 Please read the 
 You'll want add your custom information the normal way, instead of injecting it via File.derive(Closure...) like so:
 You'll want add your custom information the normal way, instead of injecting it via File.derive(Closure...) like so:
