[vlc-devel] [PATCH 2/4] ytdl: access module for YoutubeDL

Rémi Denis-Courmont remi at remlab.net
Tue Sep 22 22:31:28 CEST 2020


Le tiistaina 22. syyskuuta 2020, 21.06.01 EEST Pierre Ynard via vlc-devel a écrit :
> On Tue, Sep 22, 2020, Pierre Ynard wrote:
> > It forks a new process and launches the python interpreter in it, then
> > youtube-dl checks the URL against its list of supported websites. If
> > unsupported, it throws an exception
> 
> Wait I just noticed that in at least some if not all cases, it actually
> connects to the website, sends a HEAD then a GET request, and downloads
> the whole page, before figuring out that the website is unsupported and
> exiting?! That's some god-awful and rather pointless overhead, why??

https://github.com/ytdl-org/youtube-dl/blob/master/README.md#how-can-i-detect-whether-a-given-url-is-supported-by-youtube-dl

-- 
Rémi Denis-Courmont
http://www.remlab.net/





More information about the vlc-devel mailing list