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合集推送出现问题 #373

Closed
Darkatse opened this issue Nov 13, 2022 · 3 comments
Closed

bilibili合集推送出现问题 #373

Darkatse opened this issue Nov 13, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@Darkatse
Copy link

  1. Bug 描述
    • 是否稳定复现,是的话说明步骤
      稳定复现,订阅该合集内容时无法正常处理
    • 期望的正常行为是怎么样的
      期望合集订阅和推送正常进行
  2. 截图、日志、配置(issue 内上传图片或文件可直接粘贴)
    配置文件:
      "push": {
        "1773346": [ //莴苣
          {
            "gid": xxxxxx,
            "seasons": [
              449853,
              449849
            ]
          }
        ]
      },

问题日志:

0|cqps  | 11/13/2022, 2:38:39 AM [error] bilibili get user season new videos info 1773346:449853
0|cqps  | TypeError: Cannot destructure property 'aids' of 'data.data' as it is undefined.
0|cqps  |     at getUserSeasonNewVideosInfo (/xxxx/cq-picsearcher-bot/src/plugin/bilibili/season.js:18:13)
0|cqps  |     at runMicrotasks (<anonymous>)
0|cqps  |     at processTicksAndRejections (node:internal/process/task_queues:96:5)
0|cqps  |     at async /xxxx/cq-picsearcher-bot/src/plugin/bilibili/push.js:147:25
0|cqps  |     at async Promise.all (index 0)
0|cqps  |     at async checkSeason (/xxxx/cq-picsearcher-bot/src/plugin/bilibili/push.js:145:3)
0|cqps  |     at async Promise.all (index 2)
0|cqps  |     at async Timeout.checkPush [as _onTimeout] (/xxxx/cq-picsearcher-bot/src/plugin/bilibili/push.js:65:5)

反查代码发现请求的api是

const { data } = await retryGet(
`https://api.bilibili.com/x/polymer/space/seasons_archives_list?mid=${uid}&season_id=${sid}&sort_reverse=false&page_num=1&page_size=10`,
{ timeout: 10000 }
);

填入uid:sid后发现对应的页面是404

{"code":-404,"message":"啥都木有","ttl":1}
  1. 运行环境
    • 系统,linux Ubuntu 20.04
    • node.js 版本 v16.14.0
    • go-cqhttp 版本 1.0.0-rc3
    • cq-picsearcher-bot 版本 2.40.2
@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Nov 13, 2022

噢,因为这种属于视频列表,不是合集,是两种东西

稍后我增加订阅视频列表的功能

@Tsuk1ko Tsuk1ko added the enhancement New feature or request label Nov 13, 2022
@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Nov 13, 2022

@Darkatse
Copy link
Author

非常感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants