devine
devine copied to clipboard
Add support for selecting highest quality audio track for each language when "best" is specified
- The modified code checks if "all" is present in the
langlist. - If "all" is found, it retrieves a set of unique languages from the available audio tracks.
- For each unique language, it iterates through the audio tracks and finds the track with the highest bitrate.
- It then adds the highest quality track for each language to the
selected_audiolist. - Finally, it sets the
title.tracks.audioto theselected_audiolist, containing the highest quality track for each language. - If "all" is not found in the
langlist, the existing behavior for specific language selection is maintained.
Fixes https://github.com/devine-dl/devine/issues/93
Changed naming of -l all to -l best as I feel its easier to understand