disabled -U since yt-dlp fails downloads regardless if -U fails
This commit is contained in:
parent
b2c55890ae
commit
e1b8fd9d28
2 changed files with 6 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue