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

请问bilibili插件是否有显示弹幕功能? #2

Closed
shaolin-kongfu opened this issue May 25, 2020 · 5 comments
Closed

请问bilibili插件是否有显示弹幕功能? #2

shaolin-kongfu opened this issue May 25, 2020 · 5 comments
Labels
好问题 对新来的人很有好处

Comments

@shaolin-kongfu
Copy link
Contributor

如题

@zhengfan2014
Copy link
Owner

目前暂无弹幕功能,因为kodi目前不支持xml字幕(弹幕),不过中文插件库的bilibili有弹幕功能,是通过xml转ass字幕实现的,还是有实现的可能的。

@zhengfan2014 zhengfan2014 added the 好问题 对新来的人很有好处 label May 26, 2020
@shaolin-kongfu
Copy link
Contributor Author

我也觉得可以调用其他开发者的项目链接去下载xml再转成ass,大佬有打算开发吗?

@zhengfan2014
Copy link
Owner

我也觉得可以调用其他开发者的项目链接去下载xml再转成ass,大佬有打算开发吗?

有这个打算,不过以我目前的三脚猫编程短时间内可能写不出来😂

@shaolin-kongfu
Copy link
Contributor Author

shaolin-kongfu commented Jun 13, 2020

我编写了下载xml以及转换为ass的部分(需要aid)
https://github.com/shaolin-kongfu/danmu
大佬把它缝合到你的项目里试试??
我刚学python,看到你的代码2000+行,头有点晕

@zhengfan2014
Copy link
Owner

我编写了下载xml以及转换为ass的部分(需要aid)
https://github.com/shaolin-kongfu/danmu
大佬把它缝合到你的项目里试试??
我刚学python,看到你的代码2000+行,头有点晕

wow,谢谢,不过缝合到我的项目可能还需要一些时间。我的想法是写成独立的字幕插件,这样就可以在视频播放途中随时打开/关闭弹幕,不过字幕插件我从来没写过,网上的适合萌新的参考资料也少,所以短时间内可能做不出来😂

看代码晕挺正常的,说实话现在我看taxigps大佬的字幕插件代码也晕,我建议先从简单的入手,比如那个停更的澎湃插件,用个vscode,边运行,边调试。你可以尝试把所有代码删光,保留import 那些还有入口文件,然后看kodi.log报错,差什么补什么,理解一下整个澎湃插件的运行流程。然后再研究更复杂的

附几个可能有帮助的文档:
xbmcswift2文档:https://xbmcswift2.readthedocs.io/en/latest/
kodi的python文档:https://codedocs.xyz/xbmc/xbmc/group__python.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
好问题 对新来的人很有好处
Projects
None yet
Development

No branches or pull requests

2 participants