@bililive-tools/huya-recorder 1.11.0 → 1.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/stream.js +4 -1
  2. package/package.json +2 -2
package/lib/stream.js CHANGED
@@ -25,7 +25,10 @@ async function getRoomInfo(channelId, options) {
25
25
  formatPriorities: options.formatPriorities,
26
26
  quality: options.quality,
27
27
  });
28
- if (info.gid == 1663) {
28
+ if (info.gid == 1663 || info.gid == 1) {
29
+ // 1663=星秀区,1=英雄联盟区
30
+ return getRoomInfoByMobile(channelId, options.formatPriorities);
31
+ // TODO: wup 接口出问题了,先切回mp吧
29
32
  return getRoomInfo(channelId, {
30
33
  api: "wup",
31
34
  formatPriorities: options.formatPriorities,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bililive-tools/huya-recorder",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
4
4
  "description": "bililive-tools huya recorder implemention",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
@@ -38,7 +38,7 @@
38
38
  "axios": "^1.7.8",
39
39
  "lodash-es": "^4.17.21",
40
40
  "mitt": "^3.0.1",
41
- "@bililive-tools/manager": "^1.10.0",
41
+ "@bililive-tools/manager": "^1.11.1",
42
42
  "huya-danma-listener": "0.1.4"
43
43
  },
44
44
  "scripts": {