[vlc-devel] [PATCH 4/4] ytdl: use redirect for single media
Rémi Denis-Courmont
remi at remlab.net
Mon Sep 21 21:27:54 CEST 2020
Le maanantaina 21. syyskuuta 2020, 21.50.07 EEST Pierre Ynard via vlc-devel a
écrit :
> > Rather than expose a playlist with a single item, redirect to the
> > media URL directly if the original URL points to a single item rather
> > than a playlist.
>
> Nice, thanks for sharing this.
>
> "#EXTVLCOPT:no-ytdl" is still printed in all cases so I don't see how
> that works.
I don't understand what you mean by that. What does not work?
> More generally, it doesn't extract any metadata at all in
> the main case, does it? That's really problematic.
Well you can't have it both ways:
- Either we redirect, and there is not going to be any metadata.
- Or we use a playlist, and we'll have the URL expiry problem (and major delay
in parsing larger playlists).
That same conumdrum affects any other plugin, and redesigning the VLC input is
a non-goal.
Maybe we can add a preparsing mode, a meta fetcher module or a meta reader
module, though I don't really understand the functional difference between the
later two. (Maybe it is so that reader is supposed to read from the input byte
stream and fetcher from the internets. But that seems like an implementation
detail.)
> That would also be a reason why going through the playlist demux can be
> limiting and confusing.
We are not going through the playlist demux in that case, so I don't exactly
understand how you blame it on using the playlist demux.
And playing without metadata is surely no worse than failing to play and also
to get any metadata, which is the current situation with VLC for most
YoutubeDL-supported sites.
--
Реми Дёни-Курмон
http://www.remlab.net/
More information about the vlc-devel
mailing list