[vlc-devel] [PATCH 4/4] ytdl: use redirect for single media

Pierre Ynard linkfanel at yahoo.fr
Tue Sep 22 18:58:23 CEST 2020


> > Can we, in an access module, first set metadata on the associated
> > input item, then reset the URL, and then fail with a redirect?
>
> You can't do that, and it's very much intended that way.

Well in reality it seems to work just fine for me when I try. Can you
substantiate better why it wouldn't be possible?

> That would be a horrible hack. If you redirect, the redirected-to
> modules is expected to provide all controls, including the meta.

Why do you say that metadata are controls? Metadata are some state in
the input item, that get successively updated at many various layers
already.

> And it would indeed fundamentally not work in this particular case,
> because the access has no idea what the meta-data is. The meta-data is
> extracted by the playlist parser, which does not even exist if there a
> redirection.

It fundamentally does not work in this one particular implementation
approach that writes an M3U playlist. Let's keep in mind that youtube-dl
is the one really extracting the metadata. If the ytdl access processes
directly itself its youtube-dl output - which makes sense - it works, in
a sensible way.

-- 
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."


More information about the vlc-devel mailing list