Audio language missing in file, adds null to file name
Posted: 13 Feb 2024, 03:51
Just updated to 5.1.2 on Windows 10 and the format/preset I've been using now results in a slightly different file name than previously. Just trying to get back to [null] not being added to the file name if the audio language is blank. Any ideas?
My source file starts as this:
The.Example/The.Example:Confused.2024.1080p.BluRay.Dual.Uncut.DTS.x264-scene_name.mkv
If the audio tracks lacked language information, it would previously result in:
Example։ Confused, The (2024) [1080p]/The Example։ Confused (2024) [1080p.BluRay.x264.6ch.DTS] {edition-Uncut}.mkv
Now the same file results in:
Example։ Confused, The (2024) [1080p]/The Example։ Confused (2024) [1080p.BluRay.x264.6ch.DTS.[null, null]] {edition-Uncut}.mkv
*If the audio tracks have a language listed, it results in this:
Example։ Confused, The (2024) [1080p]/The Example։ Confused (2024) [1080p.BluRay.x264.6ch.DTS.[en, ja]] {edition-Uncut}.mkv
My source file starts as this:
The.Example/The.Example:Confused.2024.1080p.BluRay.Dual.Uncut.DTS.x264-scene_name.mkv
If the audio tracks lacked language information, it would previously result in:
Example։ Confused, The (2024) [1080p]/The Example։ Confused (2024) [1080p.BluRay.x264.6ch.DTS] {edition-Uncut}.mkv
Now the same file results in:
Example։ Confused, The (2024) [1080p]/The Example։ Confused (2024) [1080p.BluRay.x264.6ch.DTS.[null, null]] {edition-Uncut}.mkv
Code: Select all
{ n.replaceFirst(/^(?i)(the)\s(.+)/, /$2, $1/)colon('։ ') } ({y}) [{vf}]/{n.colon('։ ')}{" ($y)"} [{vf}{'.'+source}{'.'+vc}{'.'+af}{'.'+ac}{'.'+audio.language}]{ " {edition-${tags[0]}}" }{' - pt'+pi}
Example։ Confused, The (2024) [1080p]/The Example։ Confused (2024) [1080p.BluRay.x264.6ch.DTS.[en, ja]] {edition-Uncut}.mkv