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

New json key field to indicate if a video was originally live streamed #17633

Open
skytunnel opened this issue Sep 22, 2018 · 0 comments
Open

New json key field to indicate if a video was originally live streamed #17633

skytunnel opened this issue Sep 22, 2018 · 0 comments

Comments

@skytunnel
Copy link

@skytunnel skytunnel commented Sep 22, 2018

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.09.18. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.09.18

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Description of your issue, suggested solution and other information

Can you add a new key to the output json file (--dump-json) for youtube videos that indicates if the video was originally live streamed?

This information can be retrieved from the header above the description of the video.

For example:
https://youtu.be/C8OZPrfpJUs - "Streamed live on 17 Feb 2018"
https://youtu.be/8YH8oY7vOk0 - "Published on 26 Feb 2018"

Alternatively can be retrieved from the youtube search page results where it will say "Streamed 7 months ago", as opposed to just "7 months ago". This can be found just below the video title , to the right of where it also shows, channel name and view count.

There is already a key for is_live, so I'd maybe suggest labelling this one as was_live.

An example usage case for this field would be to delay a download of video that was streamed live, in order to give the channel sufficient time to trim the live-stream. i.e. Because youtube allows live-streams to be trimmed (or have cuts taken out), and the video will still retain the original video ID.

This means youtube-dl could have downloaded a recently streamed video, and then the channel trimmed that video, and if --download-archive was in use then the the final edited video would not be re-downloaded

Thanks

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.