ytbdwn.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:YtbDwn 作者: praneet95 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号