Skip to content

Commit

Permalink
Update info.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gatecrasher777 committed Mar 18, 2021
1 parent faf894e commit 1020605
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 @@ -455,7 +455,7 @@ const getDashManifest = (url, options) => new Promise((resolve, reject) => {
const getM3U8 = async(url, options) => {
url = new URL(url, BASE_URL);
let req = miniget(url.toString(), options.requestOptions);
options.reqCallback(req);
if (options.reqCallback && (typeof options.reqCallback === 'function')) options.reqCallback(req);

This comment has been minimized.

Copy link
@mh4ck

mh4ck Mar 18, 2021

For consistency it should be "requestCallback" because it's also requestOptions not reqOptions.

And why not just checking

if(typeof options.requestCallback == 'function')
let body = await req.text();
let formats = {};
body
Expand Down

0 comments on commit 1020605

Please sign in to comment.