我正在尝试使用node.js和cheerio创建一个YouTube下载程序。它适用于大多数视频,但对于发送请求的某些视频 www.youtube.com/get_video_info?&video_id=id ,我得到以下回复:
{ status: 'fail',
errorcode: '150',
errordetail: '0',
enablecsi: '1',
cver: '1.20160718',
eventid: 'O0SOV_nzF9P4oAO9xoWIBQ',
csi_page_type: 'embed',
reason: 'This video contains content from Sony Pictures Networks India Pvt. Ltd.. It is restricted from playback on certain sites.\n<a href=\'http://www.youtube.com/watch?v=KNNvi2hp1xM&feature=player_embedded\' target=\'_blank\'>Watch on YouTube</a>',
c: 'WEB' }
如何为这些视频获取正确的video_info文件?