-
Notifications
You must be signed in to change notification settings - Fork 812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update getWatchHTMLPage right pos #946
Conversation
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 the issue using ytdl-core for Discord music bot
see #946 (review)
🤔 can't replicate |
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 doesn't fix, getting the following error after playing the song :
stack: 'Error: aborted\n at connResetException (node:internal/errors:683:14)\n at TLSSocket.socketCloseListener (node:_http_client:407:19)\n at TLSSocket.emit (node:events:406:35)\n at node:net:661:12\n at TCP.done (node:_tls_wrap:580:7)\n at TCP.callbackTrampoline (node:internal/async_hooks:130:17)'
https://gist.github.com/mome0320/5ef235f47239a2dcb90f35baa79daa3c |
this PR may not affect about this error. |
any reason for not moving all three findJSON to |
in 318 line? try {
info.player_response = findJSON('watch.html', 'player_response',
body, /\bytInitialPlayerResponse\s*=\s*\{/i, '\n', '{'); // this?
} // ... It works even if you don't change this line |
yep, exactly that code
let's do it then |
nice - tests are passing |
🎉 This PR is included in version 4.8.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
in WatchHTMLPage
info.response isn't end
\n
(it's last line)so update right pos
</script>
is better.In test I think it works.