Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用下载课程指定章节和下载课程全部视频出现异常 #57

Open
0ming0 opened this issue Dec 23, 2022 · 2 comments
Open

Comments

@0ming0
Copy link

0ming0 commented Dec 23, 2022

image
image
使用过程中会出现这个
因为课程内容大小不一样 重复这个过程最多能够下载完成3个视频 但是剩下的就怎么都下载不完了 有的章节10来个视频呢

如果使用下载课程全部视频 会继续上面的那个错误跳到下个章节序列继续下载 但是也是下载不全 不知道怎么解决

def run_shell(shell, retry=True, retry_times=3):
cmd = subprocess.Popen(
shell,
close_fds=True,
shell=True,
bufsize=1,
stderr=subprocess.DEVNULL,
stdout=subprocess.DEVNULL,
)

if retry and cmd.returncode != 0:
    time.sleep(1)
    if retry_times > 0:
        return run_shell(shell, retry=True, retry_times=retry_times - 1)
    print('\nShell出现异常,请自行查看课程文件是否转码成功')
return cmd.returncode

我感觉是不是这个地方有问题造成的
是不是def run_shell(shell, retry=True, retry_times=3): 这个retry_times=3 值修改大一点?

@galaxyq
Copy link

galaxyq commented Jan 31, 2023

是不是转码的问题,我的是shell出现异常,下载的进度不完整,下载都是ts文件,无法打开

@aiguoli
Copy link
Owner

aiguoli commented Feb 1, 2023

按理说不会,我试过一个章节10多个视频的课,没问题。你发下完整日志和报错,日志个人信息部分记得去掉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants