make sub formats preference default by default

This commit is contained in:
deniscerri 2025-06-24 19:48:14 +02:00
parent ff78bcc72e
commit 8cd09a337e
No known key found for this signature in database
GPG key ID: 95C43D517D830350
2 changed files with 2 additions and 2 deletions

View file

@ -1337,7 +1337,7 @@ class YTDLPUtil(private val context: Context, private val commandTemplateDao: Co
} }
if (downloadItem.videoPreferences.embedSubs || downloadItem.videoPreferences.writeSubs || downloadItem.videoPreferences.writeAutoSubs){ if (downloadItem.videoPreferences.embedSubs || downloadItem.videoPreferences.writeSubs || downloadItem.videoPreferences.writeAutoSubs){
val subFormat = sharedPreferences.getString("sub_format", "srt") val subFormat = sharedPreferences.getString("sub_format", "")
if(subFormat!!.isNotBlank()){ if(subFormat!!.isNotBlank()){
request.addOption("--sub-format", "${subFormat}/best") request.addOption("--sub-format", "${subFormat}/best")
request.addOption("--convert-subtitles", subFormat) request.addOption("--convert-subtitles", subFormat)

View file

@ -202,7 +202,7 @@
<ListPreference <ListPreference
android:defaultValue="srt" android:defaultValue=""
android:entries="@array/sub_formats" android:entries="@array/sub_formats"
android:entryValues="@array/sub_formats_values" android:entryValues="@array/sub_formats_values"
android:icon="@drawable/baseline_format_quote_24" android:icon="@drawable/baseline_format_quote_24"