From 28d8fc7c476c71dc54bb07a1beb46463d9160761 Mon Sep 17 00:00:00 2001 From: PangMo5 Date: Fri, 25 Jun 2021 19:10:26 +0900 Subject: [PATCH] change "Auto" audioTrack logic --- JellyfinPlayer/VideoPlayer.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/JellyfinPlayer/VideoPlayer.swift b/JellyfinPlayer/VideoPlayer.swift index 345733a5..295d05b5 100644 --- a/JellyfinPlayer/VideoPlayer.swift +++ b/JellyfinPlayer/VideoPlayer.swift @@ -558,11 +558,7 @@ class PlayerViewController: UIViewController, GCKDiscoveryManagerListener, GCKRe } audioTrackArray.forEach { audio in - if Defaults[.autoSelectAudioLangCode] == "Auto", - audio.langCode.contains(Locale.current.languageCode ?? "") { - selectedAudioTrack = audio.id - mediaPlayer.currentAudioTrackIndex = audio.id - } else if audio.langCode.contains(Defaults[.autoSelectAudioLangCode]) { + if audio.langCode.contains(Defaults[.autoSelectAudioLangCode]) { selectedAudioTrack = audio.id mediaPlayer.currentAudioTrackIndex = audio.id }