Closed Darguima closed 3 years ago
The getVideoInfoPage is having problems again. This issues reports the error - https://github.com/ytdl-js/react-native-ytdl/issues/78#issuecomment-864398263.
getVideoInfoPage
After search on the issues in node-ytdl-core repository I found this solution https://github.com/fent/node-ytdl-core/commit/d1f535712410eebd79a7468abd07d94f8c4ebe5a
node-ytdl-core
It's simply more 2 parameters to the URL on getVideoInfoPage function:
c
TVHTML5
cver
7.20190319
Without this parameters the constant body that is defined like that:
body
const body = await utils.exposedMiniget(url.toString(), options).text();
will be empty and throw the error
Thanks for the PR! :rocket:
The
getVideoInfoPage
is having problems again. This issues reports the error - https://github.com/ytdl-js/react-native-ytdl/issues/78#issuecomment-864398263.After search on the issues in
node-ytdl-core
repository I found this solution https://github.com/fent/node-ytdl-core/commit/d1f535712410eebd79a7468abd07d94f8c4ebe5aIt's simply more 2 parameters to the URL on
getVideoInfoPage
function:c
:TVHTML5
cver
:7.20190319
Without this parameters the constant
body
that is defined like that:will be empty and throw the error