YoutubeDLSharp icon indicating copy to clipboard operation
YoutubeDLSharp copied to clipboard

Improving RunVideoDataFetch speed?

Open hswlab opened this issue 2 years ago • 2 comments

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.

hswlab avatar Jun 27 '23 19:06 hswlab

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.

alxnull avatar Jul 01 '23 20:07 alxnull