@bililive-tools/bilibili-recorder 1.5.0 → 1.5.1

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.
package/lib/danma.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from "node:events";
2
- import { startListen } from "./blive-message-listener/index.js";
2
+ import { startListen } from "blive-message-listener";
3
3
  import { getBuvidConf } from "./bilibili_api.js";
4
4
  // 全局缓存,一天过期时间 (24 * 60 * 60 * 1000 ms)
5
5
  const CACHE_DURATION = 24 * 60 * 60 * 1000;
package/lib/index.js CHANGED
@@ -306,8 +306,8 @@ const checkLiveStatusAndRecord = async function ({ getSavePath, isManualStart, b
306
306
  return;
307
307
  this.state = "stopping-record";
308
308
  intervalId && clearInterval(intervalId);
309
- danmaClient.stop();
310
309
  try {
310
+ danmaClient.stop();
311
311
  await recorder.stop();
312
312
  }
313
313
  catch (err) {
@@ -354,6 +354,7 @@ export const provider = {
354
354
  title: info.title,
355
355
  owner: info.owner,
356
356
  uid: info.uid,
357
+ avatar: info.avatar,
357
358
  };
358
359
  },
359
360
  createRecorder(opts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bililive-tools/bilibili-recorder",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "bililive-tools bilibili recorder implemention",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
@@ -34,12 +34,12 @@
34
34
  "author": "renmu123",
35
35
  "license": "LGPL",
36
36
  "dependencies": {
37
- "blive-message-listener": "^0.5.0",
37
+ "blive-message-listener": "^0.5.1",
38
38
  "mitt": "^3.0.1",
39
39
  "tiny-bilibili-ws": "^1.0.2",
40
40
  "lodash-es": "^4.17.21",
41
41
  "axios": "^1.7.8",
42
- "@bililive-tools/manager": "^1.4.0"
42
+ "@bililive-tools/manager": "^1.4.1"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "tsc",