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

哔哩推送增加'是否推送视频'的选项、增加订阅视频合集功能 #335

Closed
Miuzarte opened this issue Jul 4, 2022 · 10 comments
Labels
enhancement New feature or request

Comments

@Miuzarte
Copy link

Miuzarte commented Jul 4, 2022

{
  // 群号
  "gid": 1234567890,
  // 是否推送动态
  "dynamic": false,
+  // 是否推送视频
+  "video": false,
  // 是否推送直播
  "live": false,
  // 推送动态是否@全体成员
  "dynamicAtAll": false,
+  // 推送视频是否@全体成员
+  "videoAtAll": false,
  // 推送直播是否@全体成员
  "liveAtAll": false
}

image
image

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Jul 4, 2022

增加视频的选项意思是把视频从动态里分离出来单独做开关么

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Jul 4, 2022

mark 合集API

https://api.bilibili.com/x/polymer/space/seasons_archives_list?mid=10462362&season_id=658&sort_reverse=false&page_num=1&page_size=30

@Miuzarte
Copy link
Author

Miuzarte commented Jul 6, 2022

增加视频的选项意思是把视频从动态里分离出来单独做开关么

是的,有些UP订阅了只图他的视频(

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Jul 6, 2022

感觉得加个 dynamicOnlyVideo 这样的,不然跟以前的行为有冲突

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Jul 6, 2022

哦不对,单独加个 video 确实也行,dynamic 仍然包括视频

@Tsuk1ko Tsuk1ko added the enhancement New feature or request label Jul 8, 2022
@Tsuk1ko Tsuk1ko closed this as completed in 1dba3b8 Jul 8, 2022
@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Jul 8, 2022

配置见 wiki

不过我没法直接创建合集所以没得测试,日常使用的时候测测吧(

@Miuzarte
Copy link
Author

配置见 wiki

不过我没法直接创建合集所以没得测试,日常使用的时候测测吧(

image
image
没起效
image
不是风控

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Jul 12, 2022

有错误日志吗,error.log

@Miuzarte
Copy link
Author

有错误日志吗,error.log

2022/7/11 22:07:03 [error] bilibili live data 11783021
TypeError: Cannot read property 'liveStatus' of null
    at getUserLiveData (/root/cq-picsearcher-bot/src/plugin/bilibili/live.js:41:24)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async /root/cq-picsearcher-bot/src/plugin/bilibili/push.js:118:22
    at async Promise.all (index 0)
    at async checkLive (/root/cq-picsearcher-bot/src/plugin/bilibili/push.js:116:3)
    at async Promise.all (index 1)
    at async Timeout.checkPush [as _onTimeout] (/root/cq-picsearcher-bot/src/plugin/bilibili/push.js:64:5)
{
  "message": "Cannot read property 'liveStatus' of null"
}
2022/7/12 09:17:33 [error] bilibili live data 11783021
TypeError: Cannot read property 'liveStatus' of null
    at getUserLiveData (/root/cq-picsearcher-bot/src/plugin/bilibili/live.js:41:24)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async /root/cq-picsearcher-bot/src/plugin/bilibili/push.js:118:22
    at async Promise.all (index 0)
    at async checkLive (/root/cq-picsearcher-bot/src/plugin/bilibili/push.js:116:3)
    at async Promise.all (index 1)
    at async Timeout.checkPush [as _onTimeout] (/root/cq-picsearcher-bot/src/plugin/bilibili/push.js:64:5)
{
  "message": "Cannot read property 'liveStatus' of null"
}

应该是没有

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Jul 12, 2022

怪,拿 mockAPI 试了下是没问题的

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