Skip to content

Commit

Permalink
fix: correctly get format url from m3u8 playlists
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Oct 21, 2020
1 parent e07b667 commit d0776c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit d0776c2

Please sign in to comment.