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 request = ytdlpUtil.buildYoutubeDLRequest(downloadItem)
|
||||||
|
|
||||||
val updateYTDLP = sharedPreferences.getBoolean("update_ytdlp_while_downloading", false)
|
// DISABLED BECAUSE YT_DLP CONSIDERS DOWNLOAD FAILURE IF -U PART FAILS, ytdlnis #1043
|
||||||
if (updateYTDLP) {
|
// val updateYTDLP = sharedPreferences.getBoolean("update_ytdlp_while_downloading", false)
|
||||||
request.addOption("-U")
|
// if (updateYTDLP) {
|
||||||
}
|
// request.addOption("-U")
|
||||||
|
// }
|
||||||
|
|
||||||
downloadItem.status = DownloadRepository.Status.Active.toString()
|
downloadItem.status = DownloadRepository.Status.Active.toString()
|
||||||
CoroutineScope(Dispatchers.IO).launch {
|
CoroutineScope(Dispatchers.IO).launch {
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@
|
||||||
app:title="@string/auto_update_ytdlp" />
|
app:title="@string/auto_update_ytdlp" />
|
||||||
|
|
||||||
<SwitchPreferenceCompat
|
<SwitchPreferenceCompat
|
||||||
|
app:isPreferenceVisible="false"
|
||||||
android:widgetLayout="@layout/preferece_material_switch"
|
android:widgetLayout="@layout/preferece_material_switch"
|
||||||
android:icon="@drawable/ic_update"
|
android:icon="@drawable/ic_update"
|
||||||
android:defaultValue="true"
|
android:defaultValue="true"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue