wopub / bilibili2bangumi Goto Github PK
View Code? Open in Web Editor NEW将 Bilibili 订阅动画迁移至 Bangumi,保留原追番状态并自动点格子。
License: GNU General Public License v3.0
将 Bilibili 订阅动画迁移至 Bangumi,保留原追番状态并自动点格子。
License: GNU General Public License v3.0
关于Bgm API
部分完全不知道该如何操作
希望能补充文档!
现在没有许可证的情况下默认由作者保留有大多数权力,甚至包括自由使用软件的权利。换句话说,目前在未经作者同意的情况下使用这个仓库也是不被允许的。
因此请求添加许可证。如果觉得太麻烦想直接放弃大多数权利的话可以考虑下 MIT License。
非常大的问题:bilibili-api 是 GPLv3 的,Bilibili2Bangumi 的许可证也应该同样用 GPLv3。
报错信息
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 8: invalid start byte
出错位置
Line 67 in fd531b4
后面这个 ignore 是我加的,但忽略还是解析不到code,不知道是哪里出了问题 @CberYellowstone
如果之前运行过 Bilibili2Bangumi 或者手动收藏过一些动画,下一次运行时这些动画会被再次迁移。这样可能会导致 Bangumi 时间胶囊显示混乱并且会影响性能。
Bangumi 授权是可以多次使用并刷新有效期的,应该可以让用户只在必要时授权。https://github.com/bangumi/api/blob/master/docs-raw/How-to-Auth.md
PS D:\Code\Bilibili2Bangumi> python bili2bgm.py
请在弹出的授权页面中点击授权。
若授权页面没有自动弹出,请手动复制链接至浏览器中打开:
https://bgm.tv/oauth/authorize?client_id=bgm184060850037e220f&response_type=code
正在尝试取得授权...
Traceback (most recent call last):
File "bili2bgm.py", line 44, in
loop.run_until_complete(main())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\asyncio\base_events.py", line 587, in run_until_complete
return future.result()
File "bili2bgm.py", line 34, in main
bgm_auth_data = await auth_bgm_task
File "D:\Code\Bilibili2Bangumi\auth.py", line 83, in auth_bgm
f'{bgm_auth_data_raw["token_type"]}'
KeyError: 'token_type'
上述问题不再深究
bilibili_api 的 User.get_subscribed_bangumis
返回的结果中有一个 progress
字段,例如 "progress": "看到第9话 2:00"
。稍作分析可得到当前分集观看进度。
部分被弃用而且已在文档中被删除的旧 API 虽然还能工作但可能会在不知什么时候突然不工作。
新 API 的后端是 AGPL-3.0-only 的因此要适配新 API 的话大概也要改许可证为 AGPL-3.0-only。于是征求下目前4位贡献者的意见,同意的话点个 emoji 或者回个同意。
(高考刚考完又要开工了)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.