-
Notifications
You must be signed in to change notification settings - Fork 5
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
Empty video title + view count when getting any video's information #41
Comments
Thank you for your report. What code are you implementing? I have not encountered the issue of empty video titles before. |
Here you go! const {YtdlCore} = require("@ybd-project/ytdl-core");
var ytdl = new YtdlCore({
oauth2Credentials: {
accessToken: process.env.YOUTUBE_ACCESS_TOKEN,
refreshToken: process.env.YOUTUBE_REFRESH_TOKEN,
expiryDate: process.env.YOUTUBE_EXPIRY_DATE
},
noUpdate: true
});
var video = await ytdl.getFullInfo(url); And the Also if you want the other dependencies I used in my application, here's the {
"dependencies": {
"@discordjs/builders": "^0.11.0",
"@discordjs/opus": "^0.9.0",
"@discordjs/rest": "^2.4.0",
"@discordjs/voice": "^0.17.0",
"@haileybot/captcha-generator": "^1.7.0",
"@ybd-project/ytdl-core": "^6.0.8",
"discord-api-types": "^0.26.1",
"discord.js": "^13.17.1",
"dotenv": "^10.0.0",
"express": "^4.18.1",
"ffmpeg": "^0.0.4",
"fluent-ffmpeg": "^2.1.3",
"libsodium-wrappers": "^0.7.15",
"ms": "^2.1.3",
"pg": "^8.7.1",
"request": "^2.88.2"
}
} |
Can you remove the OAuth2 designation? I have recently seen a problem with OAuth2 (I don't know the details...) I have seen some of them. const ytdl = new YtdlCore({
logDisplay: ["debug", "warning", "error"],
}); |
Hello @ybd-project Kindly help me to solve the API issues? I will be very thankful to you |
If I remove the OAuth2 designation, the YouTube server will throw the However even after that, sometimes YouTube just likes to logout my account midway, and I have to restart the application to login again.
I did that one and here is the logged debug information:
|
Describe the bug
Recently I found out this
ytdl-core
library is unable to return the correct title and view count of any video. The title is always empty, and the view count is always 0.Besides that, the library can still get the video URL properly, so I'm 100% sure that it isn't because of YouTube blocking due to age/country restriction or anything else.
I'm using my own OAuth2 key generated by
cobalt
library, and before maybe November 22 the library still worked flawlessly.(Sorry for the bad font rendering, my Linux browser refuses to render the font in Amazon SSH website correctly)
Error Details (Log)
I added
YTDL_DEBUG=true
to my ENV but I didn't get any errors in the console, or I didn't actually know where it was. But here is one of the returnedvideo
object while requesting tohttps://www.youtube.com/watch?v=c5_0NPftdlY
:Environment
The text was updated successfully, but these errors were encountered: