SigureMo / mooc-dl

:man_student: 中国大学MOOC全课件(视频、文档、附件)下载器
GNU General Public License v3.0
309 stars 82 forks source link

🐛 無法下載 出現 TypeError: 'NoneType' #45

Closed greedtea closed 1 year ago

greedtea commented 1 year ago

调用方式

python mooc-dl.py "https://www.icourse163.org/course/NJUE-1458311167"

环境信息

问题简述

Python大数据分析 - 南京财经大学 1458311167 Traceback (most recent call last): File "Z:\mooc-dl-master\mooc-dl.py", line 318, in url, file_path, params = parse_resource(resource, token) File "Z:\mooc-dl-master\mooc-dl.py", line 199, in parse_resource pdf_url = res.json()["results"]["learnInfo"]["textOrigUrl"] TypeError: 'NoneType' object is not subscriptable

额外信息

是否愿意为此贡献代码

expoli commented 1 year ago

这个问题,我也遇到了,是在解析 pdf 文件路径的时候出现的问题,可以暂时在 config 里面把 pdf 下载关闭

greedtea commented 1 year ago

想修改程式,不過案F12 檢查,會出現debugger ,不給看下載內容, 有方法可以破解?