Comments (11)
这个问题实际上就是bilix/api/bilibili:get_video_info中没有解析到vedio_info.dash引发的,有能力可以debug下
from bilix.
@HFrost0 破案了,是SESSDATA要传URL encode格式的。昨天的值encode之后也成功了。要不你改下README说明一下这个?
是这样,我平时用Firefox,它的dev tool里cookie是非encode格式的。今天换Chrome,它的dev tool里的cookie是encode。。
from bilix.
我没能复现,首先检查一下你使用的终端是不是windows的命令提示符
from bilix.
我没能复现,首先检查一下你使用的终端是不是windows的命令提示符
是的,是cmd.exe。就很迷惑,等我过几天再试试?没准儿今天买的大会员,他们内部要跑个批量任务做权限同步呢?
from bilix.
不,这不是b站的问题,因为命令提示符不支持引号包裹,你的cookie用引号包裹了,所以正确的cookie没有被传入client。解决办法就是使用powershell(如果用windows terminal可以更美观)
from bilix.
不,这不是b站的问题,因为命令提示符不支持引号包裹,你的cookie用引号包裹了,所以正确的cookie没有被传入client。解决办法就是使用powershell(如果用windows terminal可以美观)
PS ..\bilix> bilix s --cookie "9***2" https://www.bilibili.com/bangumi/play/ep21266 --debug
DEBUG Debug on, more information will be shown
DEBUG CLI KEY METHOD and OPTIONS: {'cookie': '9***2', 'method': 's', 'keys':
('https://www.bilibili.com/bangumi/play/ep21266',), 'videos_dir': 'videos', 'quality': 0, 'video_concurrency':
3, 'part_concurrency': 10, 'days': 7, 'num': 10, 'order': 'pubdate', 'keyword': None, 'series': True,
'hierarchy': True, 'image': False, 'subtitle': False, 'dm': False, 'only_audio': False, 'p_range': None,
'codec': '', 'speed_limit': None, 'stream_retry': 5}
DEBUG kwarg speed_limit:None has been drop due to type hint missmatch
DEBUG auto assemble <bound method DownloaderBilibili.get_series of
<bilix.download.downloader_bilibili.DownloaderBilibili object at 0x0000019578FA1090>> by {'quality': 0,
'hierarchy': True, 'image': False, 'subtitle': False, 'dm': False, 'only_audio': False, 'p_range': None,
'codec': ''}
WARNING 轻音少女 第一季:第2话 乐器!-2 需要大会员或该地区不支持
WARNING 轻音少女 第一季:第3话 特训!-3 需要大会员或该地区不支持
WARNING 轻音少女 第一季:第4话 住宿集训!-4 需要大会员或该地区不支持
WARNING 轻音少女 第一季:第5话 顾问!-5 需要大会员或该地区不支持
INFO 提示:用户中断,重复执行命令可继续下载
嗯。。。换ps不行
from bilix.
要不我用python调包debug看看?但是加了--debug
也没有报红,感觉没出exception吧。
from bilix.
先看看网页端能否正常播放,不行的话就等等吧,因为我也不知道咋回事了😂
from bilix.
先看看网页端能否正常播放,不行的话就等等吧,因为我也不知道咋回事了😂
网页端是能的,我再看看吧,反正就当15块钱帮bili垫点运营商专线费用了。。
from bilix.
这个问题实际上就是bilix/api/bilibili:get_video_info中没有解析到vedio_info.dash引发的,有能力可以debug下
debug结果(多测试了几部:https://www.bilibili.com/bangumi/play/ep429349
, https://www.bilibili.com/bangumi/play/ep21265
):
client.cookies.set('SESSDATA', sess_data)
把cookie成功设进去了。- bili对大会员限定的集数的响应HTML中确实没有
<script>window.__playinfo__=
部分。 - 试着
client.cookies.set()
所有浏览器中的bili的cookie,还是不返回那个部分。
🤔算了,过几天再试试
from bilix.
可以开个PR补充一下文档
from bilix.
Related Issues (20)
- 请求添加自定义输出文件名的功能 HOT 2
- 使用get_up获取某个up的所有投稿视频的时候,可能会获取到已经失效的视频?然后get_video_info就会发生报错?
- ImportError due to deprecated 'cgi' module in Python 3.13
- 0.18.6 regression test failure HOT 6
- api错误 HOT 1
- 报错
- 报错 HOT 2
- bilix.exception.APIParseError: APIParseError Caused by KeyError in <bilix.sites.bilibili.api:get_up_video_info> HOT 1
- python和vc++都是最新的,为啥报错 HOT 2
- Specify profile directory with from-browser
- Python 调用如何使用cookie? HOT 1
- bilix0.18.8执行报错 HOT 4
- mac下载的视频文件只有音频,没有画面 HOT 4
- 下载b站视频合集时,raise EndOfStream from None
- New feat: BaseDownloader can switch to faster url when provided multiple urls for same resource
- 请问可以通过api接口的形式访问吗 HOT 8
- 下载收藏夹视频报错:Can't find any handler for method: 'get_favour' keys HOT 2
- Documents URL Link not working HOT 1
- [增加]按照UP主的文字分类存放
- 【bilix get_up 】KeyError: 'list' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bilix.