def Down_aria(button,choice): ### called when user select download using aria ## it modifys flags which are further used to decide which loop to enter ### modifies "folename" "url" and "comp_command"(command to be executed with aria)
global filename
global comp_command
global downSeconloop
global downThirdloop
global downurl
comp_command = basecommand + "-o " + filename
if str(choice.mediatype) == "normal" :
downSeconloop=1
filename = title + str(choice.resolution)+"." + str(choice.extension)
elif str(choice.mediatype) == "video" :
filename = title + choice.resolution+"." + choice.extension
downThirdloop=1
elif str(choice.mediatype) == "audio" :
filename = title + "." + choice.extension
downThirdloop=1
downurl = urllib.unquote(str(choice.url))
raise urwid.ExitMainLoop()
############################# print basic video info######################## 1st Loop info #################333#####can be done in a function too
评论列表
文章目录