buzzk 2.2.2 → 2.3.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/live.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/live.js
CHANGED
|
@@ -37,7 +37,7 @@ const { reqChzzk } = require("./tool.js");
|
|
|
37
37
|
async function getDetail (channelID) {
|
|
38
38
|
return new Promise(async (resolve, reject) => {
|
|
39
39
|
|
|
40
|
-
let res = await reqChzzk("service/v3/channels/" + channelID + "/live-detail");
|
|
40
|
+
let res = await reqChzzk("service/v3.2/channels/" + channelID + "/live-detail");
|
|
41
41
|
if (res.code != 200 || !res.content) return resolve(null);
|
|
42
42
|
res = res.content;
|
|
43
43
|
|
|
@@ -56,6 +56,7 @@ async function getDetail (channelID) {
|
|
|
56
56
|
closeOn: res.closeDate,
|
|
57
57
|
status: res.status,
|
|
58
58
|
polling: JSON.parse(res.livePollingStatusJson),
|
|
59
|
+
imageURL: res.liveImageUrl.split("{type}").join("480"),
|
|
59
60
|
liveID: livePlayback.meta.liveId,
|
|
60
61
|
videoID: livePlayback.meta.videoId
|
|
61
62
|
}
|