cnbeining / onedrivecmd

A command line client for Onedrive.
https://www.cnbeining.com/
GNU Affero General Public License v3.0
378 stars 78 forks source link

离线下载出错 #9

Closed neteroster closed 7 years ago

neteroster commented 7 years ago

账户是企业版E3订阅(Onedrive for business)

python3/python2 均已尝试

root@ubuntu:~/onedrive-cli-test-folder/onedrivecmd# python3 onedrivecmd.py remote "http://thecatapi.com/api/images/get?format=src&type=gif"
Traceback (most recent call last):
  File "onedrivecmd.py", line 79, in <module>
    main()
  File "onedrivecmd.py", line 73, in main
    do_remote(client, args)
  File "/root/onedrive-cli-test-folder/onedrivecmd/utils/actions.py", line 446, in do_remote
    print(req.headers['location'])
  File "/usr/lib/python3/dist-packages/requests/structures.py", line 54, in __getitem__
    return self._store[key.lower()][1]
KeyError: 'location'
neteroster commented 7 years ago

看到了,必须要个人账户

cnbeining commented 7 years ago

请升级到最新版,而且:

只有个人版支持离线下载。

On Aug 21, 2017 9:45 AM, "LIZONGZE" notifications@github.com wrote:

账户是商业版E3订阅(Onedrive for business)

root@ubuntu:~/onedrive-cli-test-folder/onedrivecmd# python3 onedrivecmd.py remote "http://thecatapi.com/api/images/get?format=src&type=gif" Traceback (most recent call last): File "onedrivecmd.py", line 79, in main() File "onedrivecmd.py", line 73, in main do_remote(client, args) File "/root/onedrive-cli-test-folder/onedrivecmd/utils/actions.py", line 446, in do_remote print(req.headers['location']) File "/usr/lib/python3/dist-packages/requests/structures.py", line 54, in getitem return self._store[key.lower()][1] KeyError: 'location'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cnbeining/onedrivecmd/issues/9, or mute the thread https://github.com/notifications/unsubscribe-auth/ABfRgldRYAVMVQUKbYnBbIbk6q2PVUNcks5saYoUgaJpZM4O9Xee .

neteroster commented 7 years ago

@cnbeining 嗯,刚刚已经看到了