Closed tyhour closed 3 years ago
I'm getting the same error too
What things have you tried during debugging?
same problem it's been working before
I found a workaround. You need edit the package on node_modules
so it is undo when you run yarn
or npm install
. I already created a PR to correct it, just need wait be approved.
Add html5: 1
to the query object on node_modules/react-native-ytdl/lib/info.js
, on function getVideoInfoPage
(about line 329)
Some like this:
query: {
video_id: id,
eurl: VIDEO_EURL + id,
ps: 'default',
gl: 'US',
hl: options.lang || 'en',
html5: 1
}
I found the solution there: https://github.com/fent/node-ytdl-core/issues/923#issuecomment-843365128
I found a workaround. You need edit the package on
node_modules
so it is undo when you runyarn
ornpm install
. I already created a PR to correct it, just need wait be approved.Add
html5: 1
to the query object onnode_modules/react-native-ytdl/lib/info.js
, on functiongetVideoInfoPage
(about line 329)Some like this:
query: { video_id: id, eurl: VIDEO_EURL + id, ps: 'default', gl: 'US', hl: options.lang || 'en', html5: 1 }
I found the solution there: fent/node-ytdl-core#923 (comment)
I found a workaround. You need edit the package on
node_modules
so it is undo when you runyarn
ornpm install
. I already created a PR to correct it, just need wait be approved.Add
html5: 1
to the query object onnode_modules/react-native-ytdl/lib/info.js
, on functiongetVideoInfoPage
(about line 329)Some like this:
query: { video_id: id, eurl: VIDEO_EURL + id, ps: 'default', gl: 'US', hl: options.lang || 'en', html5: 1 }
I found the solution there: fent/node-ytdl-core#923 (comment)
Now I used ytdl-core with rest api for my app right now. I thinks this package not update anymore. So issue has been fixed for me.
I have problem with IOS can't get data response with error below. TypeError: undefined is not an object (evaluating 'videoDetails.thumbnail.thumbnails I was console.log in package and I see info = {"player_response": undefined} Thanks for help.