let args =
if musicOnly: buildMusicDownloadArgs(url)
else: buildVideoDownloadArgs(url)
- discard execShellCmd(&"youtube-dl {args.join(\" \")}")
+ if isInstalled("aria2c"):
+ discard execShellCmd(&"youtube-dl {args.join(\" \")} --external-downloader aria2c --external-downloader-args '-x 16 -s 16 -k 2M'")
+ else:
+ discard execShellCmd(&"youtube-dl {args.join(\" \")}")
proc offerSelection(searchResults: SearchResults, options: Table[string, bool], selectionRange: SelectionRange): string =