-
Notifications
You must be signed in to change notification settings - Fork 218
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
feat: add bnj to be able to resolve url without bvid in parse_link
by __INITIAL_STATE__
#640
Conversation
… __INITIAL_STATE__
当获取历史弹幕时,需要初始化from_seg,to_seg。否则 语句 for seg in range(from_seg, to_seg+1)会产生TypeError。
其实 |
fix TypeError: 'NoneType' + 'int' in history danmuku
yew还有这种?!但这些可以通过re匹配一下单独处理倒是,所以是这三个每个都塞到parse_link还是说都先不管了。 |
把正则改一下,别管 其实可以直接把正则优化掉,用 |
还有,如果要用到 |
哦对这个确实,用了 |
能解析出对应 Video 对象就行了,没人在乎分类,改成 |
总结一下:对于有 |
这次加了 |
看完后我觉得有两个问题:为什么留下 |
ok了,这回全都放到了 |
为
parse_link
添加了处理拜年纪url中没有bvid的情况,通过Nemo说的__INITIAL_STATE__
来获取bvid如果认为返回整个
dict
或者返回一个全部bvid
的列表,我也可以改一下。(词典会稍稍麻烦些因为没法塞到Video类里,然后列表的话就看不到分类(比如说正片,单品,等等))