mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-07-29 23:04:13 +09:00
fix: remove unused value
This commit is contained in:
parent
a43e1de98c
commit
af0aee79e7
@ -221,7 +221,6 @@ class Aria2pFD(ExternalFD):
|
|||||||
return cls.__avail
|
return cls.__avail
|
||||||
|
|
||||||
def _call_downloader(self, tmpfilename, info_dict):
|
def _call_downloader(self, tmpfilename, info_dict):
|
||||||
try:
|
|
||||||
aria2 = aria2p.API(
|
aria2 = aria2p.API(
|
||||||
aria2p.Client(
|
aria2p.Client(
|
||||||
host='http://localhost',
|
host='http://localhost',
|
||||||
@ -229,15 +228,7 @@ class Aria2pFD(ExternalFD):
|
|||||||
secret=''
|
secret=''
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
except NameError as exc:
|
|
||||||
raise ModuleNotFoundError("No moudle named aria2p") from exc
|
|
||||||
|
|
||||||
# ANSI colors
|
|
||||||
color_code = tuple(
|
|
||||||
f"\033[{i}m"
|
|
||||||
for i in range(30, 38)
|
|
||||||
)
|
|
||||||
pre_len = -1
|
|
||||||
options = {
|
options = {
|
||||||
'min-split-size': '1M',
|
'min-split-size': '1M',
|
||||||
'max-connection-per-server': 4,
|
'max-connection-per-server': 4,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user