ybd-project / ytdl-core

Fast and secure YouTube downloader for JavaScript and TypeScript
MIT License
28 stars 5 forks source link

All player APIs #9

Closed badDevelopper closed 2 months ago

badDevelopper commented 3 months ago

Describe the bug

Error: All player APIs responded with an error. (Clients: web_creator, ios, android) at _getBasicInfo (/home/container/node_modules/@ybd-project/ytdl-core/package/info.js:326:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async _getInfo (/home/container/node_modules/@ybd-project/ytdl-core/package/info.js:362:18) Emitted 'error' event on Client instance at: at emitUnhandledRejectionOrErr (node:events:402:10) at process.processTicksAndRejections (node:internal/process/task_queues:84:21)

Node.js v20.16.0

paradix commented 2 months ago

my code is CommonJS, this in now an ES Module so ... :)

Or does the /old support all new functionality?

ybd-project commented 2 months ago

Doesn't it work with CommonJS? I think it should work...

ybd-project commented 2 months ago

my code is CommonJS, this in now an ES Module so ... :)

Or does the /old support all new functionality?

Yes. No problem since /old uses the same function to operate. However, /old will be removed in the future

paradix commented 2 months ago

for now it works, at least my scope of functionalities

ybd-project commented 2 months ago

Using /old? I would like to be able to use CommonJS without using /old for future use.

paradix commented 2 months ago

Yes, using /old it works.

I just need to figure out how to refresh the token for OAuth2

paradix commented 2 months ago

Using /old? I would like to be able to use CommonJS without using /old for future use.

Maybe this?

https://stackoverflow.com/questions/74937600/how-to-support-es-modules-and-commonjs-modules-at-the-same-time

ybd-project commented 2 months ago

Are you using something like the following?

const ytdlCore = require("@ybd-project/ytdl-core")
ybd-project commented 2 months ago

Yes, using /old it works.

I just need to figure out how to refresh the token for OAuth2

OAuth2 refresh is automatically performed by ytdl-core.

paradix commented 2 months ago

Are you using something like the following?

const ytdlCore = require("@ybd-project/ytdl-core")

Yes

ybd-project commented 2 months ago

Are you using something like the following?

const ytdlCore = require("@ybd-project/ytdl-core")

Yes

That's why, starting with v5.1.0, ytdl-core no longer uses the default export, so you need to do the following.

const { YtdlCore } = require("@ybd-project/ytdl-core")
paradix commented 2 months ago

Are you using something like the following?

const ytdlCore = require("@ybd-project/ytdl-core")

Yes

That's why, starting with v5.1.0, ytdl-core no longer uses the default export, so you need to do the following.

const { YtdlCore } = require("@ybd-project/ytdl-core")

Works. Thnx a lot.

ybd-project commented 2 months ago

This issue was deemed resolved. If you have any questions, please create a new issue.

paradix commented 4 days ago

Quick check and I'm missing data for upcoming live events (example https://www.youtube.com/watch?v=PzfyPxadxVY) This lacks:

  • videoDetails.isLiveContent
  • videoDetails.liveBroadcastDetails
  • videoDetails.videoId
  • videoDetails.title

Thank you, this will help us improve v5.1.0.

Hello, I again miss the data in under:

videoDetails.liveBroadcastDetails

Has anything changed?