Closed daoquangphuong closed 4 years ago
it mostly happens when the video is not available in your region
that's weird cause I still can view this video from my browser.
![Uploading Screen Shot 2020-10-28 at 15.12.15.png…]()
I cant see the image but I am not sure then. I don't get formats mostly when the video is not available in the region my server is in
sorry for the image. @Roki100 I got empty formats when I was running the code above on my computer. the weird thing, I can play the youtube link that was used in the code on my computer. so I don't think the reason is the region
https://www.youtube.com/watch?v=rButbqDqAe8
It happens to some youtube links that there is no embed permission.
I clone your code and fix it by adding this line
info.player.args.player_response = info.player.args.player_response || info.playerResponse;
to
info.html5player = info.html5player || (info.player && info.player.assets && info.player.assets.js);
info.player.args.player_response = info.player.args.player_response || info.playerResponse;
return gotConfig(id, options, info, body);
When info.player.args.player_response = undefinied it should be taken from info.playerResponse
thanks for the above tip on how to fix
going to mark this as dupe since #750 exists
ytdl-core v4
after running this code
I get info.formats = []