From 90ed89d2d4c4ad7f218ab46f08ee913a5d933da2 Mon Sep 17 00:00:00 2001 From: teddy171 Date: Wed, 8 Feb 2023 07:42:35 +0800 Subject: [PATCH] Update youtube_dl/downloader/external.py Co-authored-by: dirkf --- youtube_dl/downloader/external.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py index f69d382c0..ec0573a62 100644 --- a/youtube_dl/downloader/external.py +++ b/youtube_dl/downloader/external.py @@ -220,8 +220,7 @@ class Aria2pFD(ExternalFD): return cls.__avail def _call_downloader(self, tmpfilename, info_dict): - import aria2p - aria2 = aria2p.API( + aria2 = self.aria2p.API( aria2p.Client( host='http://localhost', port=6800,