M
M
Mars362021-11-16 23:39:43
YouTube
Mars36, 2021-11-16 23:39:43

How to get information about a playlist without uploading it to yt-dlp?

I can get the information I need, but either downloads the entire playlist, which is very long.
I tried to play with the download parameter, but it did not give any result at all, for example: and Does not change the download in any way. Perhaps I'm missing something else? Or does it only load information like this?
info = ydl.extract_info(url, download=False)
info = ydl.extract_info(url, download=True)

[youtube:tab] Downloading just video X-VdHRROubI because of --no-playlist
[youtube] X-VdHRROubI: Downloading webpage
[youtube] X-VdHRROubI: Downloading android player API JSON
[youtube] X-VdHRROubI: Downloading MPD manifest
[youtube] X-VdHRROubI: Downloading MPD manifest
[youtube:tab] Downloading playlist PLrKqYl7FgK1SYT46S4UxrmnBcd9cLhixu; add --no-playlist to just download video X-VdHRROubI
[youtube:tab] PLrKqYl7FgK1SYT46S4UxrmnBcd9cLhixu: Downloading webpage
[youtube:tab] PLrKqYl7FgK1SYT46S4UxrmnBcd9cLhixu: Downloading webpage
[youtube:tab] PLrKqYl7FgK1SYT46S4UxrmnBcd9cLhixu: Downloading API JSON with unavailable videos
[download] Downloading playlist: Born To Die (Album)
[youtube:tab] playlist Born To Die (Album): Downloading 15 videos
[download] Downloading video 1 of 15
[youtube] X-VdHRROubI: Downloading webpage
[youtube] X-VdHRROubI: Downloading android player API JSON
[youtube] X-VdHRROubI: Downloading MPD manifest
[youtube] X-VdHRROubI: Downloading MPD manifest
[download] Downloading video 2 of 15
...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bezvozni, 2022-02-13
@Mars36

ydl_opts = {
"extract_flat": True,
}
with YoutubeDL(ydl_opts) as ydl:
info = ydl.extract_info(url)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question