apachecn/CDNDrive

bili的上传文件无法下载

StudenGit opened this issue · 5 comments

之前一直没问题的,最近一两周出现的问题,上传的时候没问题,但是下载失败:

cdrive download bdex://5787c80246b33*****************
Traceback (most recent call last):
File "E:\Programs\Python\Python310\lib\runpy.py", line 196, in run_module_as_main
return run_code(code, main_globals, None,
File "E:\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "E:\Programs\Python\Python310\Scripts\cdrive.exe_main
.py", line 7, in
File "E:\Programs\Python\Python310\lib\site-packages\CDNDrive_main
.py", line 329, in main
args.func(args)
File "E:\Programs\Python\Python310\lib\site-packages\CDNDrive_main
.py", line 203, in download_handle
meta_dict = fetch_meta(args.meta)
File "E:\Programs\Python\Python310\lib\site-packages\CDNDrive_main_.py", line 50, in fetch_meta
meta_dict = json.loads(encoder.decode(full_meta).decode("utf-8"))
File "E:\Programs\Python\Python310\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "E:\Programs\Python\Python310\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "E:\Programs\Python\Python310\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

用的是Windows系统,同时上传的baijia和微博都没问题,可以下载下来

好像每次的报错信息都不一样 当使用info的时候是这样的

cdrive info bdex://03a11f9d08da416e790c86***************
Traceback (most recent call last):
File "E:\Programs\Python\Python310\lib\runpy.py", line 196, in run_module_as_main
return run_code(code, main_globals, None,
File "E:\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "E:\Programs\Python\Python310\Scripts\cdrive.exe_main
.py", line 7, in
File "E:\Programs\Python\Python310\lib\site-packages\CDNDrive_main
.py", line 329, in main
args.func(args)
File "E:\Programs\Python\Python310\lib\site-packages\CDNDrive_main
.py", line 251, in info_handle
meta_dict = fetch_meta(args.meta)
File "E:\Programs\Python\Python310\lib\site-packages\CDNDrive_main_.py", line 50, in fetch_meta
meta_dict = json.loads(encoder.decode(full_meta).decode("utf-8"))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 80: invalid start byte

cdrive download bdex://c4a21cdbbeca1c70***************
Traceback (most recent call last):
File "E:\Programs\Python\Python310\lib\runpy.py", line 196, in run_module_as_main
return run_code(code, main_globals, None,
File "E:\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "E:\Programs\Python\Python310\Scripts\cdrive.exe_main
.py", line 7, in
File "E:\Programs\Python\Python310\lib\site-packages\CDNDrive_main
.py", line 329, in main
args.func(args)
File "E:\Programs\Python\Python310\lib\site-packages\CDNDrive_main
.py", line 203, in download_handle
meta_dict = fetch_meta(args.meta)
File "E:\Programs\Python\Python310\lib\site-packages\CDNDrive_main_.py", line 50, in fetch_meta
meta_dict = json.loads(encoder.decode(full_meta).decode("utf-8"))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 124: invalid start byte

我也遇到了同样的问题,下载网上的bdex是可以的

上传60MB文件实验,发现上传时meta文件和下回来的meta文件不一样,b站把上传的meta文件夹了一截。

只有meta被截断,还是载有文件内容的图片也被截断了?