diff --git a/lib/track.js b/lib/track.js index 587cb73..a2e68e2 100644 --- a/lib/track.js +++ b/lib/track.js @@ -66,11 +66,11 @@ const createAudioLanguageFilter = (audios) => { } const results = []; const filteredLanguages = [ - ...new Set(filtered.map((track) => track.language)), + ...new Set(filtered.map((track) => `${track.language}:${track.label}`)), ]; for (const language of filteredLanguages) { const tracks = filtered - .filter((track) => track.language === language) + .filter((track) => `${track.language}:${track.label}` === language) .slice(0, maxTracksPerLanguage); results.push(...tracks); }