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: duration field is null in flat-playlist --json output #28049

Open
3 tasks done
tonyc-blastpoint opened this issue Feb 2, 2021 · 1 comment
Open
3 tasks done

Comments

@tonyc-blastpoint
Copy link

tonyc-blastpoint commented Feb 2, 2021

Checklist

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

Description

WRITE DESCRIPTION HERE

The duration field is empty when fetching a YouTube playlist when using the flat playlist JSON output:

$  python -m youtube_dl --flat-playlist -j https://www.youtube.com/user/BostonDynamics/videos
{"_type": "url_transparent", "ie_key": "Youtube", "id": "F843AqfNsaA", "url": "F843AqfNsaA", "title": "Meet Spot Enterprise", "description": null, "duration": null, "view_count": 112689, "uploader": null}
{"_type": "url_transparent", "ie_key": "Youtube", "id": "6Zbhvaac68Y", "url": "6Zbhvaac68Y", "title": "Spot's Got an Arm!", "description": null, "duration": null, "view_count": 1333404, "uploader": null}
{"_type": "url_transparent", "ie_key": "Youtube", "id": "fn3KWM1kuAw", "url": "fn3KWM1kuAw", "title": "Do You Love Me?", "description": null, "duration": null, "view_count": 27911156, "uploader": null}

#25853 was submitted to fix this functionality (among other things) but not merged. A fix was requested in #25720 but closed.

@Crypto90
Copy link

Crypto90 commented Feb 5, 2021

I already made some quick and dirty changes to get the playlist results right:
https://github.com/Crypto90/youtube-dl-1

I compile it always myself because the patches never got merged...
those changes work with the latest code. maybe someone can look over it/improve it/beautify it to get it merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants