This commit is contained in:
LagradOst 2021-10-31 18:01:26 +01:00
parent 5a341104f0
commit bd8350f255
2 changed files with 5 additions and 8 deletions

View file

@ -32,7 +32,6 @@ import android.view.animation.AnimationUtils
import android.widget.* import android.widget.*
import android.widget.Toast.LENGTH_SHORT import android.widget.Toast.LENGTH_SHORT
import androidx.appcompat.app.AlertDialog import androidx.appcompat.app.AlertDialog
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible import androidx.core.view.isVisible
import androidx.fragment.app.Fragment import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider import androidx.lifecycle.ViewModelProvider
@ -1941,6 +1940,9 @@ class PlayerFragment : Fragment() {
) + currentUrl.headers // Adds the headers from the provider, e.g Authorization ) + currentUrl.headers // Adds the headers from the provider, e.g Authorization
setDefaultRequestProperties(headers) setDefaultRequestProperties(headers)
} }
//https://stackoverflow.com/questions/69040127/error-code-io-bad-http-status-exoplayer-android
setAllowCrossProtocolRedirects(true)
} }
} else { } else {
DefaultDataSourceFactory(requireContext(), USER_AGENT) DefaultDataSourceFactory(requireContext(), USER_AGENT)

View file

@ -99,11 +99,6 @@
android:summary="@string/dns_pref_summary" android:summary="@string/dns_pref_summary"
android:icon="@drawable/ic_baseline_dns_24"> android:icon="@drawable/ic_baseline_dns_24">
</Preference> </Preference>
<Preference
android:icon="@drawable/ic_baseline_language_24"
android:key="@string/provider_lang_key"
android:title="@string/provider_lang_settings">
</Preference>
<Preference <Preference
android:icon="@drawable/ic_baseline_tv_24" android:icon="@drawable/ic_baseline_tv_24"
android:key="@string/app_layout_key" android:key="@string/app_layout_key"