make sub formats preference default by default
This commit is contained in:
parent
ff78bcc72e
commit
8cd09a337e
2 changed files with 2 additions and 2 deletions
|
|
@ -1337,7 +1337,7 @@ class YTDLPUtil(private val context: Context, private val commandTemplateDao: Co
|
|||
}
|
||||
|
||||
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()){
|
||||
request.addOption("--sub-format", "${subFormat}/best")
|
||||
request.addOption("--convert-subtitles", subFormat)
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@
|
|||
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="srt"
|
||||
android:defaultValue=""
|
||||
android:entries="@array/sub_formats"
|
||||
android:entryValues="@array/sub_formats_values"
|
||||
android:icon="@drawable/baseline_format_quote_24"
|
||||
|
|
|
|||
Loading…
Reference in a new issue