gaowanliang / OneDriveShareLinkPushAria2

Extract download URLs from OneDrive or SharePoint share links and push them to aria2, even on systems without a GUI.
Apache License 2.0
313 stars 68 forks source link

sharepoint链接报错 #11

Closed Fulanlan closed 3 years ago

Fulanlan commented 3 years ago

Traceback (most recent call last): File "main.py", line 388, in getFiles(OneDriveShareURL, None, 0) File "main.py", line 92, in getFiles if "NextHref" in graphqlReq["data"]["legacy"]["renderListDataAsStream"]["ListData"]: TypeError: 'NoneType' object is not subscriptable

使用测试的onedrive链接可以正常列出,用问题1的sharepoint链接和我自己的sharepoint链接都会报上述错误 https://fulanlan.sharepoint.com/:f:/s/fulan/EsJeZSf6QpBIritMqRLVR8YBomuxEiVoRsnRMOUIjGjFBQ?e=SwoIxT

YinAoXiong commented 3 years ago

Traceback (most recent call last): File "main.py", line 388, in getFiles(OneDriveShareURL, None, 0) File "main.py", line 92, in getFiles if "NextHref" in graphqlReq["data"]["legacy"]["renderListDataAsStream"]["ListData"]: TypeError: 'NoneType' object is not subscriptable

使用测试的onedrive链接可以正常列出,用问题1的sharepoint链接和我自己的sharepoint链接都会报上述错误 https://fulanlan.sharepoint.com/:f:/s/fulan/EsJeZSf6QpBIritMqRLVR8YBomuxEiVoRsnRMOUIjGjFBQ?e=SwoIxT

是解析相对路径时出现了一点不同,我提交了一个pr,本地测试了一下应该是解决了