GithubHelp home page GithubHelp logo

Comments (11)

HFrost0 avatar HFrost0 commented on May 27, 2024 1

这个问题实际上就是bilix/api/bilibili:get_video_info中没有解析到vedio_info.dash引发的,有能力可以debug下

from bilix.

boholder avatar boholder commented on May 27, 2024 1

@HFrost0 破案了,是SESSDATA要传URL encode格式的。昨天的值encode之后也成功了。要不你改下README说明一下这个?
是这样,我平时用Firefox,它的dev tool里cookie是非encode格式的。今天换Chrome,它的dev tool里的cookie是encode。。

from bilix.

HFrost0 avatar HFrost0 commented on May 27, 2024

我没能复现,首先检查一下你使用的终端是不是windows的命令提示符

from bilix.

boholder avatar boholder commented on May 27, 2024

我没能复现,首先检查一下你使用的终端是不是windows的命令提示符

是的,是cmd.exe。就很迷惑,等我过几天再试试?没准儿今天买的大会员,他们内部要跑个批量任务做权限同步呢?

from bilix.

HFrost0 avatar HFrost0 commented on May 27, 2024

不,这不是b站的问题,因为命令提示符不支持引号包裹,你的cookie用引号包裹了,所以正确的cookie没有被传入client。解决办法就是使用powershell(如果用windows terminal可以更美观)

类似 #53 #104

from bilix.

boholder avatar boholder commented on May 27, 2024

不,这不是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.

boholder avatar boholder commented on May 27, 2024

要不我用python调包debug看看?但是加了--debug也没有报红,感觉没出exception吧。

from bilix.

HFrost0 avatar HFrost0 commented on May 27, 2024

先看看网页端能否正常播放,不行的话就等等吧,因为我也不知道咋回事了😂

from bilix.

boholder avatar boholder commented on May 27, 2024

先看看网页端能否正常播放,不行的话就等等吧,因为我也不知道咋回事了😂

网页端是能的,我再看看吧,反正就当15块钱帮bili垫点运营商专线费用了。。

from bilix.

boholder avatar boholder commented on May 27, 2024

这个问题实际上就是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.

HFrost0 avatar HFrost0 commented on May 27, 2024

可以开个PR补充一下文档

from bilix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.