fix: remove unused value

This commit is contained in:
teddy171 2023-01-30 08:37:53 +08:00
parent a43e1de98c
commit af0aee79e7

View File

@ -221,23 +221,14 @@ 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', port=6800,
port=6800, 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,