def get_classin_video(lessonkey):
    c = Classin(lessonkey)
    path = os.path.join(c.course_name(), c.teacher(), c.md())
    if (not os.path.exists(path)):
        os.makedirs(path)
    vlist = c.videolist()
    for (i, v) in enumerate(vlist):
        vfile = os.path.join(path, '{}.mp4'.format(i))
        print('正在下载:', c.md())
        try:
            downloader.multithread_download(v, vfile)
        except Exception as e:
            print(vfile, '下载失败\n链接: ', v, '\n错误: ', e)
def get_classin_video(lessonkey):
    c = Classin(lessonkey)
    path = os.path.join(c.course_name(), c.teacher(), c.md())
    if (not os.path.exists(path)):
        os.makedirs(path)
    vlist = c.videolist()
    for (i, v) in enumerate(vlist):
        vfile = os.path.join(path, '{}.mp4'.format(i))
        print('正在下载:', c.md())
        try:
            downloader.multithread_download(v, vfile)
        except Exception as e:
            print(vfile, '下载失败\n链接: ', v, '\n错误: ', e)