pull/843/head
deniscerri 1 year ago
parent 794bb9a320
commit ff78bcc72e
No known key found for this signature in database
GPG Key ID: 95C43D517D830350

@ -246,9 +246,6 @@ class YTDLPUtil(private val context: Context, private val commandTemplateDao: Co
} }
val availableSubtitles = mutableListOf<String>() val availableSubtitles = mutableListOf<String>()
if (jsonObject.has("automatic_captions")) {
availableSubtitles.addAll(jsonObject.getJSONObject("automatic_captions").keys().asSequence().toList())
}
if (jsonObject.has("subtitles")) { if (jsonObject.has("subtitles")) {
availableSubtitles.addAll(jsonObject.getJSONObject("subtitles").keys().asSequence().toList()) availableSubtitles.addAll(jsonObject.getJSONObject("subtitles").keys().asSequence().toList())
} }

Loading…
Cancel
Save