You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromaria2_rpc_clientimportDefaultClientfromaria2_rpc_clientimportDefaultConnectionfromaria2_rpc_clientimportFileDownloadOptions# Make connection, enter aria2 rpc server informationconnection=DefaultConnection("localhost", "6800", "top_secret_key")
# Make clientclient=DefaultClient(connection)
# Download optionsoptions=FileDownloadOptions()
options.set_filename("changed.mkv")
options.set_dir("/home/user/downloads")
options.add_header("token", "da78d676ds6a86dsa6d8sa6d8")
# Download start & set optionsresult=client.add_uri(["https://jell.yfish.us/media/jellyfish-15-mbps-hd-h264.mkv"], options)
# Get defined GID number from aria2print(result)
# 6be2fb970af88d07# Set download pausepause_download=client.pause(result)
print(pause_download)
# 6be2fb970af88d07