Skip to content

Commit 35954ae

Browse files
🔖 v0.5.26
1 parent a337de7 commit 35954ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twitch-dlp",
3-
"version": "0.5.25",
3+
"version": "0.5.26",
44
"author": "DmitryScaletta",
55
"description": "Download any twitch VODs from start during live broadcast",
66
"license": "MIT",

twitch-dlp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ const getLiveVideoInfo = async (streamMeta, channelLogin) => {
14691469
[formats, videoMeta] = await Promise.all([getVideoFormats(broadcast.id), getVideoMetadata(broadcast.id)]);
14701470
if (videoMeta) videoInfo = getVideoInfoByVideoMeta(videoMeta);
14711471
}
1472-
if (formats.length === 0) {
1472+
if (startTimestampMs + 3e4 < Date.now() && formats.length === 0) {
14731473
console.warn("[live-from-start] Recovering the playlist");
14741474
const startTimestamp = startTimestampMs / 1e3;
14751475
formats = await getVideoFormatsByFullVodPath(getFullVodPath(`${channelLogin}_${streamMeta.stream.id}_${startTimestamp}`));

0 commit comments

Comments
 (0)