Skip to content

Commit

Permalink
fix: fix "Could not find player config" error in age restricted videos
Browse files Browse the repository at this point in the history
fixes #690
  • Loading branch information
fent committed Aug 20, 2020
1 parent 232262c commit 074f7a4
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 @@ -84,7 +84,7 @@ exports.getBasicInfo = async(id, options) => {
// and requires an account logged in to view, try the embed page.
let embedUrl = `${EMBED_URL + id}?${params}`;
body = await miniget(embedUrl, options.requestOptions).text();
let jsonStr = util.between(body, 't.setConfig({\'PLAYER_CONFIG\': ', '</script>');
let jsonStr = util.between(body, '\'PLAYER_CONFIG\': ', '</script>');
let config;
if (!jsonStr) {
throw Error('Could not find player config');
Expand Down

0 comments on commit 074f7a4

Please sign in to comment.