Tag files with Dolby Digital Plus audio streams

All about user-defined episode / movie / file name format expressions
Post Reply
User avatar
rednoah
The Source
Posts: 22994
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Tag files with Dolby Digital Plus audio streams

Post by rednoah »

Check if there's any audio stream where the FormatCommercial field matches "Dolby Digital Plus", and then yield either "DD+" or null accordingly:

Format: Select all

{ audio.FormatCommercial =~ /Dolby Digital Plus/ ? /DD+/ : null }

Screenshot
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: Tag files with Dolby Digital Plus audio streams

Post by kim »

Or you can use my format and change "EAC3" to e.g. DD+ ;)

viewtopic.php?f=5&t=5285&p=43834#p43844

btw: remember to only choice the (line) output you want

Code: Select all

	allStreams.join(' & ').space('.')
	preferredStream.space('.')
	defaultStream.space('.')
	bestBitRate.space('.')
	[bestBitRate, preferredStream].unique().join(' & ').space('.')
	[defaultStream, bestBitRate].unique().join(' & ').space('.')
Post Reply