@bililive-tools/douyin-recorder 1.0.0 → 1.2.0
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/README.md +1 -0
- package/lib/index.js +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
package/lib/index.js
CHANGED
|
@@ -68,7 +68,6 @@ const checkLiveStatusAndRecord = async function ({ getSavePath, banLiveId, isMan
|
|
|
68
68
|
const liveInfo = await getInfo(this.channelId);
|
|
69
69
|
const { living, owner, title, liveId } = liveInfo;
|
|
70
70
|
this.liveInfo = liveInfo;
|
|
71
|
-
this.emit("LiveStart", { liveId });
|
|
72
71
|
if (liveInfo.liveId === banLiveId) {
|
|
73
72
|
this.tempStopIntervalCheck = true;
|
|
74
73
|
}
|
|
@@ -79,6 +78,7 @@ const checkLiveStatusAndRecord = async function ({ getSavePath, banLiveId, isMan
|
|
|
79
78
|
return null;
|
|
80
79
|
if (!living)
|
|
81
80
|
return null;
|
|
81
|
+
this.emit("LiveStart", { liveId });
|
|
82
82
|
let res;
|
|
83
83
|
try {
|
|
84
84
|
let strictQuality = false;
|
|
@@ -128,6 +128,7 @@ const checkLiveStatusAndRecord = async function ({ getSavePath, banLiveId, isMan
|
|
|
128
128
|
segment: this.segment ?? 0,
|
|
129
129
|
getSavePath: (opts) => getSavePath({ owner, title, startTime: opts.startTime }),
|
|
130
130
|
disableDanma: this.disableProvideCommentsWhenRecording,
|
|
131
|
+
videoFormat: this.videoFormat ?? "auto",
|
|
131
132
|
}, onEnd);
|
|
132
133
|
const savePath = getSavePath({
|
|
133
134
|
owner,
|
|
@@ -194,10 +195,9 @@ const checkLiveStatusAndRecord = async function ({ getSavePath, banLiveId, isMan
|
|
|
194
195
|
return;
|
|
195
196
|
if (this.saveGiftDanma === false)
|
|
196
197
|
return;
|
|
197
|
-
// console.log("gift", msg);
|
|
198
198
|
const gift = {
|
|
199
199
|
type: "give_gift",
|
|
200
|
-
timestamp:
|
|
200
|
+
timestamp: Number(msg.sendTime),
|
|
201
201
|
name: msg.gift.name,
|
|
202
202
|
price: 1,
|
|
203
203
|
count: Number(msg.totalCount),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bililive-tools/douyin-recorder",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "@bililive-tools douyin recorder implemention",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"axios": "^1.7.8",
|
|
38
38
|
"lodash-es": "^4.17.21",
|
|
39
39
|
"mitt": "^3.0.1",
|
|
40
|
-
"@bililive-tools/manager": "^1.
|
|
41
|
-
"douyin-danma-listener": "0.1.
|
|
40
|
+
"@bililive-tools/manager": "^1.2.0",
|
|
41
|
+
"douyin-danma-listener": "0.1.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "*"
|