diff --git a/app/src/main/java/com/deniscerri/ytdl/util/extractors/YTDLPUtil.kt b/app/src/main/java/com/deniscerri/ytdl/util/extractors/YTDLPUtil.kt index 1c89811b4..74f0cf7d9 100644 --- a/app/src/main/java/com/deniscerri/ytdl/util/extractors/YTDLPUtil.kt +++ b/app/src/main/java/com/deniscerri/ytdl/util/extractors/YTDLPUtil.kt @@ -76,6 +76,10 @@ class YTDLPUtil(private val context: Context) { } addOption("-P", FileUtil.getCachePath(context) + "/tmp") + if (sharedPreferences.getBoolean("no_check_certificates", true)) { + addOption("--no-check-certificates") + } + val extraCommands = sharedPreferences.getString("data_fetching_extra_commands", "")!! if (extraCommands.isNotBlank()){ //addCommands(extraCommands.split(" ", "\t", "\n")) @@ -644,6 +648,10 @@ class YTDLPUtil(private val context: Context) { } } + if (sharedPreferences.getBoolean("no_check_certificates", true)) { + request.addOption("--no-check-certificates") + } + val proxy = sharedPreferences.getString("proxy", "") if (proxy!!.isNotBlank()){ request.addOption("--proxy", proxy) diff --git a/app/src/main/res/drawable/baseline_note_24.xml b/app/src/main/res/drawable/baseline_note_24.xml new file mode 100644 index 000000000..d65ff5eca --- /dev/null +++ b/app/src/main/res/drawable/baseline_note_24.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d1ca5d3d3..0d00b259a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -443,4 +443,5 @@ YT-DLP Youtube Recommendations (needs cookies) YT-DLP Youtube Liked Videos (needs cookies) YT-DLP Youtube Watch History (needs cookies) + Suppress HTTPS certificate validation \ No newline at end of file diff --git a/app/src/main/res/xml/downloading_preferences.xml b/app/src/main/res/xml/downloading_preferences.xml index 667d82916..cd0bfa36f 100644 --- a/app/src/main/res/xml/downloading_preferences.xml +++ b/app/src/main/res/xml/downloading_preferences.xml @@ -67,6 +67,13 @@ android:key="use_cookies" app:title="@string/use_cookies" /> + +