We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 044bab1 + 4c8875c commit 570c973Copy full SHA for 570c973
lib_ass_media/src/main/java/io/github/peerless2012/ass/media/AssHandler.kt
@@ -147,8 +147,8 @@ class AssHandler(val renderType: AssRenderType) : Listener {
147
val track = availableTracks.firstNotNullOfOrNull {
148
// When media without external subtitles, format id will not change.
149
// When media with external subtitles, format will become like 1:1 .
150
- // So to compat both situation, we just use endsWith.
151
- if (format?.id?.endsWith(it.key) == true) {
+ // So to compat both situation, we extract the actual id after the colon.
+ if (format?.id?.substringAfter(":") == it.key) {
152
it.value
153
} else {
154
null
0 commit comments