From d0776c255665c3090817aea8b6f5d5e9594ee835 Mon Sep 17 00:00:00 2001 From: fent <933490+fent@users.noreply.github.com> Date: Wed, 21 Oct 2020 16:33:38 -0700 Subject: [PATCH] fix: correctly get format url from m3u8 playlists --- lib/info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/info.js b/lib/info.js index 8fcd1758..eab26dbb 100644 --- a/lib/info.js +++ b/lib/info.js @@ -301,7 +301,7 @@ const getM3U8 = async(url, options) => { let formats = {}; body .split('\n') - .filter(line => /https?:\/\//.test(line)) + .filter(line => /^https?:\/\//.test(line)) .forEach(line => { const itag = parseInt(line.match(/\/itag\/(\d+)\//)[1]); formats[itag] = { itag, url: line };