File Name Pattern Elements: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 85: | Line 85: | ||
|Here, if %language% is empty, underscore won't be added to the output file name. | |Here, if %language% is empty, underscore won't be added to the output file name. | ||
|} | |} | ||
It is also possible to add several, comma separated, tag patterns in []. In this case the first non-empty value will be picked. | |||
{| class="wikitable" | |||
|[%title%,%album%] | |||
|If %title% is not empty, it will be used. If %album% is not empty, then it will be used. If both, %title% and %album% are empty, the whole [] block will be discarded. | |||
== Tags with multiple values == | == Tags with multiple values == | ||
Revision as of 10:22, 25 May 2020
Elements from file name and/or audio stream
| %filename% | Output file name (created from the input file name). |
| %folder% | Input file name folder, e.g. audio for file c:\some\folder\audio\file.flac. |
| %outputfiletype% | Output file type, e.g. mp3. |
| %filetype% | The same as %outputfiletype% |
| %language% | Language (for file with multiple audio streams). |
| %streamid% | Audio stream index. |
| %codec% | Input file Codec. |
| %nchannel% | Channel number (used in "Split into file per channel"). |
| %chname% | Channel name (used in "Split into file per channel"), e.g. (FL, FR, C, etc). |
| %channels% | Number of channels of the output file. |
| %originalfilename% | Input file name (used in "Split By" file name pattern). Also, if files were added vie CUE file, input file name will be used for output. |
Metadata elements
| %albumartist% | Album artist |
| %artist% | Artist |
| %album% | Album |
| %track% | Track |
| %track2% | 2 digit track number, i.e. values 1-9 will be left-padded with a zero (01, 02, etc.). |
| %disc% | Disc |
| %disc2% | See %track2% |
| %disc3% | The same as %disc%, only if value is 1/1, it will be discarded. |
| %title% | Title |
| %year% | Year |
| %date% | Date |
| %genre% | Genre |
Optional parts
Some parts of the Pattern can be marked as optional, which means that if Metadata element in that part is empty, the whole part will be discarded. Optional part is enclosed in brackets [ ]. For example:
| %albumartist%[ - %album%]\%track2%. %title% | If %album% is empty, then everything, which was enclosed in [ ] will be discarded (including dash and space). |
| %filename%_(%streamid%[_%language%][%codec%]) | Here, if %language% is empty, underscore won't be added to the output file name. |
It is also possible to add several, comma separated, tag patterns in []. In this case the first non-empty value will be picked.
| [%title%,%album%] | If %title% is not empty, it will be used. If %album% is not empty, then it will be used. If both, %title% and %album% are empty, the whole [] block will be discarded.
Tags with multiple valuesIt is possible to access value of the tag by index, e.g. %genre(1)% will return first value. Case conversionIs is possible to change case of the Metadata elements using the following:
Date conversion elements (taken from Linux)
Examples
|