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

bili的上传文件无法下载 #39

Open
StudenGit opened this issue Aug 20, 2022 · 5 comments
Open

bili的上传文件无法下载 #39

StudenGit opened this issue Aug 20, 2022 · 5 comments

Comments

@StudenGit
Copy link

StudenGit commented Aug 20, 2022

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

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和微博都没问题,可以下载下来

@StudenGit
Copy link
Author

StudenGit commented Aug 21, 2022

好像每次的报错信息都不一样 当使用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

@StudenGit
Copy link
Author

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

@RELemon
Copy link

RELemon commented Sep 17, 2022

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

@HIbian
Copy link

HIbian commented Oct 28, 2022

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

@lemonchu
Copy link

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

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

4 participants