Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add parameters to
get_video_info
endpoint
fixes 404 errors
- Loading branch information
d1f5357
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix worked for me - many thanks
There are NO instructions on how to apply this though - should I have been able to use npm install ytdl-core@ to achieve this?
As it happens, I had to dig into
//.nvm/versions........../info.js and add the lines manually.For my (and everyone else's refenrence) how should I have applied this?
Many thanks for the fix and I hope it reaches the main branch soon.
Tim.
d1f5357
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm i git+github.com/fent/node-ytdl-core/commit/d1f535712410eebd79a7468abd07d94f8c4ebe5a.git
d1f5357
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran
npm i git://github.com/fent/node-ytdl-core.git#d1f535712410eebd79a7468abd07d94f8c4ebe5a
and its working now, hopefully it's patched soon. Thanks!d1f5357
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
d1f5357
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it started working for me too but I had to change the version in the package.json to 4.8.3 before it actually worked. Before I did that, the 404 error was gone but I had no audio. After changing it to 4.8.3 it was back yo normal
d1f5357
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much! This error was really annoying.
For anyone having troubles where to put it if this doesnt work try this
ytdl-core > lib > info.js add it to line 328
url.searchParams.set('c', 'TVHTML5');
url.searchParams.set('cver', '7.20190319');
d1f5357
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
url.searchParams.set('c', 'TVHTML5');
url.searchParams.set('cver', '7.20190319');
I added this but I'm still getting a
MinigetError: Status code: 404
at ClientRequest. (C:\Users\oproo\Desktop\favorito\node_modules\miniget\dist\index.js:211:27)
at Object.onceWrapper (events.js:422:26)
at ClientRequest.emit (events.js:315:20)
at HTTPParser.parserOnIncomingClient (_http_client.js:641:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:126:17)
at TLSSocket.socketOnData (_http_client.js:509:22)
at TLSSocket.emit (events.js:315:20)
at addChunk (internal/streams/readable.js:309:12)
at readableAddChunk (internal/streams/readable.js:284:9)
at TLSSocket.Readable.push (internal/streams/readable.js:223:10) {
statusCode: 404
}
d1f5357
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same error.