mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-26 07:42:49 +00:00
New: AudioBitRate Naming Token
This commit is contained in:
parent
8f29536187
commit
0c6cc4acdb
2 changed files with 4 additions and 2 deletions
|
@ -90,6 +90,7 @@ const qualityTokens = [
|
|||
const mediaInfoTokens = [
|
||||
{ token: '{MediaInfo AudioCodec}', example: 'FLAC' },
|
||||
{ token: '{MediaInfo AudioChannels}', example: '2.0' },
|
||||
{ token: '{MediaInfo AudioBitRate}', example: '320kbps' },
|
||||
{ token: '{MediaInfo AudioBitsPerSample}', example: '24bit' },
|
||||
{ token: '{MediaInfo AudioSampleRate}', example: '44.1kHz' }
|
||||
];
|
||||
|
@ -100,8 +101,8 @@ const otherTokens = [
|
|||
];
|
||||
|
||||
const originalTokens = [
|
||||
{ token: '{Original Title}', example: 'Artist.Name.S01E01.HDTV.x264-EVOLVE' },
|
||||
{ token: '{Original Filename}', example: 'artist.name.s01e01.hdtv.x264-EVOLVE' }
|
||||
{ token: '{Original Title}', example: 'Artist.Name.Album.Name.2018.FLAC-EVOLVE' },
|
||||
{ token: '{Original Filename}', example: '01 - track name' }
|
||||
];
|
||||
|
||||
class NamingModal extends Component {
|
||||
|
|
|
@ -341,6 +341,7 @@ private void AddMediaInfoTokens(Dictionary<string, Func<TokenMatch, string>> tok
|
|||
|
||||
tokenHandlers["{MediaInfo AudioCodec}"] = m => audioCodec;
|
||||
tokenHandlers["{MediaInfo AudioChannels}"] = m => audioChannelsFormatted;
|
||||
tokenHandlers["{MediaInfo AudioBitRate}"] = m => MediaInfoFormatter.FormatAudioBitrate(trackFile.MediaInfo);
|
||||
tokenHandlers["{MediaInfo AudioBitsPerSample}"] = m => MediaInfoFormatter.FormatAudioBitsPerSample(trackFile.MediaInfo);
|
||||
tokenHandlers["{MediaInfo AudioSampleRate}"] = m => MediaInfoFormatter.FormatAudioSampleRate(trackFile.MediaInfo);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue