From cffd721d2cd14edde5649f64d8648b2616b1d17f Mon Sep 17 00:00:00 2001 From: lifegpc Date: Tue, 21 Jun 2022 01:30:03 +0000 Subject: [PATCH] Fix fallback will cause download failed( The root reason of #90 --- src/downloader/tasks.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/downloader/tasks.rs b/src/downloader/tasks.rs index 775b6ec..5ee7792 100644 --- a/src/downloader/tasks.rs +++ b/src/downloader/tasks.rs @@ -251,8 +251,9 @@ pub async fn create_download_tasks_multi_internal< println!("Index {}: HTTP Status {}", index, status); } if status == 200 || status == 416 { - d.fallback_to_simp(); - d.tasks.replace_with2(Vec::new()); + // FIX ME: FALLBACK will cause download not completed. + // d.fallback_to_simp(); + // d.tasks.replace_with2(Vec::new()); return Err(DownloaderError::from(gettext( "Warning: The server seems does not support range.", )));