Merged
Conversation
DIYgod
requested changes
May 9, 2019
docs/install/README.md
Outdated
|
|
||
| - `bilibili`: | ||
|
|
||
| - `BILIBILI_COOKIE_{uid}`: id 为{uid}的 b 站用户登录后的 Cookie 值 |
Owner
There was a problem hiding this comment.
这句话不太懂,对应 uid 的 b 站用户登录后的 Cookie 值
Owner
There was a problem hiding this comment.
需要补充下 Cookie 获取方式:控制台执行 document.cookie
|
|
||
| <Route name="视频搜索" author="Symty" example="/bilibili/vsearch/藤原千花" path="/bilibili/vsearch/:kw/:order?" :paramsDesc="['检索关键字', '排序方式, 综合:totalrank 最多点击:click 最新发布:pubdate(缺省) 最多弹幕:dm 最多收藏:stow']"/> | ||
|
|
||
| ::: warning 注意 |
docs/social-media.md
Outdated
| 用户动态需要 b 站登录后的 Cookie 值,所以只能自建,详情见部署页面的配置模块。 | ||
|
|
||
| ::: | ||
| <Route name="用户动态首页投稿视频" author="LogicJake" example="/bilibili/followings/dynamic/2267573" path="/bilibili/dynamic_video/:uid" :paramsDesc="['用户 id']"/> |
Owner
There was a problem hiding this comment.
不应该是 /followings/dynamic 应该是 /followings/video
lib/config.js
Outdated
| const uid = name.slice(16); | ||
| module.exports.bilibili.cookies[uid] = envs[name]; | ||
| } | ||
| } |
lib/router.js
Outdated
| router.get('/bilibili/topic/:topic', require('./routes/bilibili/topic')); | ||
| router.get('/bilibili/audio/:id', require('./routes/bilibili/audio')); | ||
| router.get('/bilibili/vsearch/:kw/:order?', require('./routes/bilibili/vsearch')); | ||
| router.get('/bilibili/dynamic/video/:uid', require('./routes/bilibili/dynamic_video')); |
lib/routes/bilibili/dynamic_video.js
Outdated
| ); | ||
|
|
||
| ctx.state.data = { | ||
| title: `${name} 动态首页投稿视频`, |
| const uid = String(ctx.params.uid); | ||
| const name = await cache.getUsernameFromUID(ctx, uid); | ||
|
|
||
| const cookie = config.bilibili.cookies[uid]; |
DIYgod
requested changes
May 9, 2019
docs/social-media.md
Outdated
|
|
||
| <Route name="视频搜索" author="Symty" example="/bilibili/vsearch/藤原千花" path="/bilibili/vsearch/:kw/:order?" :paramsDesc="['检索关键字', '排序方式, 综合:totalrank 最多点击:click 最新发布:pubdate(缺省) 最多弹幕:dm 最多收藏:stow']"/> | ||
|
|
||
| <Route name="用户关注视频动态" author="LogicJake" example="/bilibili/dynamic/video/2267573" path="/bilibili/dynamic/video/:uid" :paramsDesc="['用户 id']"> |
Owner
There was a problem hiding this comment.
路由建议改成 /followings/video/:uid
dynamic 动态指的是包括投稿内容的整个B站动态
以后加用户关注动态路由就可以是 /followings/dynamic/:uid
Contributor
There was a problem hiding this comment.
不知道「动态」这个概念在这里是不是用 timeline 更好理解呢?(t.bilibili.com)
DIYgod
approved these changes
May 12, 2019
Owner
|
Merged, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #2087