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