mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-01-22 04:27:00 +00:00
fix: wrong selection of default audio language
it would always fallback to "en" as the loop was over array keys not values
This commit is contained in:
parent
62ceb1d940
commit
b39574af62
@ -613,7 +613,7 @@ export default {
|
||||
// Set the audio language
|
||||
const prefLang = this.getPreferenceString("hl", "en").substr(0, 2);
|
||||
var lang = "en";
|
||||
for (var l in player.getAudioLanguages()) {
|
||||
for (var l of player.getAudioLanguages()) {
|
||||
if (l == prefLang) {
|
||||
lang = l;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user