From 26d067915f76dc1ed5016ec7e521c693e48d1ecd Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Wed, 17 Jan 2024 04:49:37 +0000 Subject: [PATCH] Fix output directory and filename for single-URL aria2c downloads --- devine/core/downloaders/aria2c.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devine/core/downloaders/aria2c.py b/devine/core/downloaders/aria2c.py index b44d510..15305fa 100644 --- a/devine/core/downloaders/aria2c.py +++ b/devine/core/downloaders/aria2c.py @@ -54,11 +54,11 @@ async def aria2c( for i, url in enumerate(uri): url_text = url if multiple_urls: - url_text += f"\n\tdir={out.parent}" - url_text += f"\n\tout={out.name}" - else: url_text += f"\n\tdir={out}" url_text += f"\n\tout={i:08}.mp4" + else: + url_text += f"\n\tdir={out.parent}" + url_text += f"\n\tout={out.name}" if cookies: mock_request = requests.Request(url=url) cookie_header = get_cookie_header(cookies, mock_request)