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

Populate fields for match-filter and in the json output #9835

Open
10 tasks done
maaaaz opened this issue May 1, 2024 · 4 comments
Open
10 tasks done

Populate fields for match-filter and in the json output #9835

maaaaz opened this issue May 1, 2024 · 4 comments
Labels
site-enhancement Feature request for some website triage Untriaged issue

Comments

@maaaaz
Copy link

maaaaz commented May 1, 2024

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

No response

Example URLs

https://www.youtube.com/playlist?list=PLWHarrLXQlqmsKldQC9j9XIMpArq6-0iP

Provide a description that is worded well enough to be understood

cf. #9614 (comment)

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

cf. https://github.com/yt-dlp/yt-dlp/issues/9614#issuecomment-2086354473
@maaaaz maaaaz added site-enhancement Feature request for some website triage Untriaged issue labels May 1, 2024
@maaaaz maaaaz changed the title Populate fields in the json output Populate fields for match-filter and in the json output May 1, 2024
@bashonly
Copy link
Member

bashonly commented May 1, 2024

which fields? can you make this request more specific please? And I'm guessing you mean with --flat-playlist?

@maaaaz
Copy link
Author

maaaaz commented May 2, 2024

You can see this comment #9614 (comment) that fields in each entry of playlist are not populated.

For public and private videos, fields of each video entry are "null", which makes "match-filter" unusable:

$ yt-dlp "https://www.youtube.com/playlist?list=PLWHarrLXQlqmsKldQC9j9XIMpArq6-0iP" --ignore-errors --flat-playlist --dump-single-json > twiesel_playlist.json

$ cat twiesel_playlist.json | jq
...
{
"_type": "url",
"ie_key": "Youtube",
"id": "drmZZ9D_W28",
"url": "https://www.youtube.com/watch?v=drmZZ9D_W28",
"title": "[Private video]",
"description": null,
"duration": null,
"channel_id": null,
"channel": null,
"channel_url": null,
"uploader": null,
"uploader_id": null,
"uploader_url": null,
...

@pukkandan
Copy link
Member

They want availability as I understand

@maaaaz
Copy link
Author

maaaaz commented May 2, 2024

Yes, it would be a good start, in order to be able to remove private videos from download.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-enhancement Feature request for some website triage Untriaged issue
Projects
None yet
Development

No branches or pull requests

3 participants