Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[youtube] Extract duration in flat playlist mode #25720

Open
Midorina opened this issue Jun 19, 2020 · 0 comments
Open

[youtube] Extract duration in flat playlist mode #25720

Midorina opened this issue Jun 19, 2020 · 0 comments
Labels

Comments

@Midorina
Copy link

@Midorina Midorina commented Jun 19, 2020

Checklist

  • I'm reporting a site feature request
  • I've verified that I'm running youtube-dl version 2020.06.16.1
  • I've searched the bugtracker for similar site feature requests including closed ones

Description

What the problem is:
Duration information of videos in a YouTube playlist are not given by YouTube-DL even though they're available, causing us to process each video (make an individual request for each video) to find out their duration. (which often leads to 429)

How it could be fixed:
Changing the video regex (maybe) and then parsing the duration of videos in the playlist extractor would fix this. (https://github.com/ytdl-org/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L332)

How your proposed solution would look like:
User calls extract_info() with process=False. The;

  • Youtube ID
  • Title
  • and the duration of each video is given by YouTube-DL without having to pass process=True to extract_info() and make extra calls.
@dstftw dstftw changed the title Include the duration information of videos in the Youtube extractor. [youtube] Extract duration in flat playlist mode Jun 19, 2020
@dstftw dstftw added the request label Jun 19, 2020
@ytdl-org ytdl-org locked and limited conversation to collaborators Jun 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.