Skip to content

Commit d6c25f9

Browse files
🔖 v0.5.20
1 parent 642a113 commit d6c25f9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twitch-dlp",
3-
"version": "0.5.19",
3+
"version": "0.5.20",
44
"author": "DmitryScaletta",
55
"description": "Download any twitch VODs from start during live broadcast",
66
"license": "MIT",
@@ -26,5 +26,5 @@
2626
"twitch-regex": "^0.1.3",
2727
"typescript": "^5.8.3"
2828
},
29-
"packageManager": "pnpm@10.12.1+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac"
29+
"packageManager": "pnpm@10.15.0+sha512.486ebc259d3e999a4e8691ce03b5cac4a71cbeca39372a9b762cb500cfdf0873e2cb16abe3d951b1ee2cf012503f027b98b6584e4df22524e0c7450d9ec7aa7b"
3030
}

twitch-dlp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,9 +1451,9 @@ const getAvailableFormats = async (vodDomain, fullVodPath, broadcastType, videoI
14511451
const getVideoFormatsByFullVodPath = async (fullVodPath, broadcastType, videoId) => {
14521452
const responses = await Promise.all(VOD_DOMAINS.map((domain) => {
14531453
const url = getVodUrl(domain, fullVodPath, broadcastType, videoId);
1454-
return fetch(url, { method: "HEAD" });
1454+
return fetch(url, { method: "HEAD" }).catch(() => null);
14551455
}));
1456-
const vodDomainIdx = responses.findIndex((res) => res.ok);
1456+
const vodDomainIdx = responses.findIndex((res) => res?.ok);
14571457
if (vodDomainIdx === -1) return [];
14581458
return getAvailableFormats(VOD_DOMAINS[vodDomainIdx], fullVodPath, broadcastType, videoId);
14591459
};

0 commit comments

Comments
 (0)