refactor: Warn falling back to requests as aria2c doesn't support Range

This commit is contained in:
rlaphoenix
2024-05-11 22:59:19 +01:00
parent 5ef95e942a
commit f08402d795
2 changed files with 7 additions and 3 deletions

View File

@@ -472,6 +472,7 @@ class DASH:
if downloader.__name__ == "aria2c" and any(bytes_range is not None for url, bytes_range in segments):
# aria2(c) is shit and doesn't support the Range header, fallback to the requests downloader
downloader = requests_downloader
log.warning("Falling back to the requests downloader as aria2(c) doesn't support the Range header")
for status_update in downloader(
urls=[