disabled -U since yt-dlp fails downloads regardless if -U fails

This commit is contained in:
deniscerri 2026-01-01 18:58:30 +01:00
parent b2c55890ae
commit e1b8fd9d28
No known key found for this signature in database
GPG key ID: 95C43D517D830350
2 changed files with 6 additions and 4 deletions

View file

@ -170,10 +170,11 @@ class DownloadWorker(
val request = ytdlpUtil.buildYoutubeDLRequest(downloadItem)
val updateYTDLP = sharedPreferences.getBoolean("update_ytdlp_while_downloading", false)
if (updateYTDLP) {
request.addOption("-U")
}
// DISABLED BECAUSE YT_DLP CONSIDERS DOWNLOAD FAILURE IF -U PART FAILS, ytdlnis #1043
// val updateYTDLP = sharedPreferences.getBoolean("update_ytdlp_while_downloading", false)
// if (updateYTDLP) {
// request.addOption("-U")
// }
downloadItem.status = DownloadRepository.Status.Active.toString()
CoroutineScope(Dispatchers.IO).launch {

View file

@ -31,6 +31,7 @@
app:title="@string/auto_update_ytdlp" />
<SwitchPreferenceCompat
app:isPreferenceVisible="false"
android:widgetLayout="@layout/preferece_material_switch"
android:icon="@drawable/ic_update"
android:defaultValue="true"