diff --git a/lib/info.js b/lib/info.js index 417f8761..c728632e 100644 --- a/lib/info.js +++ b/lib/info.js @@ -251,7 +251,7 @@ const parseJSON = (source, varName, json) => { const findJSON = (source, varName, body, left, right, prependJSON) => { - let jsonStr = utils.between(body, left, right); + let jsonStr = body.split("ytInitialPlayerResponse = {")[1].split("}}};")[0] += "}}}"; if (!jsonStr) { throw Error(`Could not find ${varName} in ${source}`); }