Skip to content
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

Improving RunVideoDataFetch speed? #35

Open
hswlab opened this issue Jun 27, 2023 · 1 comment
Open

Improving RunVideoDataFetch speed? #35

hswlab opened this issue Jun 27, 2023 · 1 comment

Comments

@hswlab
Copy link

hswlab commented Jun 27, 2023

Hi, is it possible to improve the fetch speed for video information in the following call somehow?
var res = await ytdl.RunVideoDataFetch("https://www.youtube.com/watch?v=_QdPW8JrYzQ");

I was wondering if you could limit the information you want to get.
For example, you wand just search for the title, thumbnail and the format list of a single video.

@alxnull
Copy link
Member

alxnull commented Jul 1, 2023

Hey, I think improving the speed of video information fetching would mainly happen on the yt-dlp side as it is responsible for extracting & parsing the video information and passing it in json format. RunVideoDataFetch() uses yt-dlp's --dump-json for fetching video information, which always returns the full data. I'm not aware of an option that extracts & returns partial data to make it faster. Let me know if you have any suggestions regarding this though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants