mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
fix string
This commit is contained in:
parent
9000745759
commit
a8e9dcf0da
@ -1196,9 +1196,10 @@ class PlayerFragment : Fragment() {
|
||||
val defRes = PreferenceHelper.getString(
|
||||
requireContext(),
|
||||
"default_resolution",
|
||||
"auto"
|
||||
"hls"
|
||||
)!!
|
||||
if (defRes != "auto") {
|
||||
|
||||
if (defRes != "hls") {
|
||||
videosNameArray.forEachIndexed { index, pipedStream ->
|
||||
// search for quality preference in the available stream sources
|
||||
if (pipedStream.contains(defRes)) {
|
||||
@ -1210,6 +1211,7 @@ class PlayerFragment : Fragment() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// if default resolution isn't set or available, use hls if available
|
||||
if (streams.hls != null) {
|
||||
val mediaItem: MediaItem = MediaItem.Builder()
|
||||
|
@ -583,7 +583,7 @@
|
||||
<item>144p</item>
|
||||
</string-array>
|
||||
<string-array name="defresValue">
|
||||
<item></item>
|
||||
<item>hls</item>
|
||||
<item>1080p</item>
|
||||
<item>720p</item>
|
||||
<item>480p</item>
|
||||
|
Loading…
Reference in New Issue
Block a user