This commit is contained in:
zaednasr 2024-10-18 06:50:36 +02:00
parent a3946dc416
commit e14cd4fccb
No known key found for this signature in database
GPG key ID: 92B1DE23AD3D0E9E

View file

@ -479,7 +479,7 @@ class FormatSelectionBottomSheetDialog(
FormatSorting.id -> chosenFormats.sortedBy { it.format_id }
FormatSorting.codec -> {
val codecOrder = resources.getStringArray(R.array.video_codec_values).toMutableList()
codecOrder.removeFirst()
codecOrder.removeAt(0)
chosenFormats.groupBy { format -> codecOrder.indexOfFirst { format.vcodec.matches("^(${it})(.+)?$".toRegex()) } }
.flatMap {