[Feature Request] Smarter audio track selection

Currently, audio tracks are selected as follows:

  1. If an audio track that matches your preferred audio language is found, it will be used, else
  2. If there are multiple unknown language audio tracks, the first track will be used, else
  3. If there is a single audio track, it will be used even if the language doesn’t match

Some containers support tagging the default audio track, I’d suggest changing the logic as follows:
2. If there are multiple unknown language audio tracks:

  • If a track is tagged as default, it will be used, else
  • the first track will be used

I prefer watching media in the original language, with subtitles, so I’ve set autoselected audio language to “None” and subtitles to “English”. In a large portion of my media, the original language is properly tagged as default but it isn’t the first audio track - shouldn’t really need to remux everything because perfectly good metadata is ignored.

As a side note: The same logic should apply to subtitle selection.

I’d like smarter auto track selection. Additionally, I think Plex should also add option to default to original audio track. So if it’s French movie, French would be at higher priority than other languages, even if default language is set to English and movie has English audio track. This shouldn’t be too hard since Plex is loading metadata.