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

[utils] traverse_obj: Allow iterables in traversal #6902

Merged
merged 2 commits into from Apr 24, 2023

Conversation

Grub4K
Copy link
Member

@Grub4K Grub4K commented Apr 24, 2023

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

This allows things like traverse_obj(..., ('key', {dict.items}, ...))

Template

Before submitting a pull request make sure you have:

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

@Grub4K Grub4K merged commit 21b5ec8 into yt-dlp:master Apr 24, 2023
11 checks passed
@Grub4K Grub4K deleted the feat/traverse-iterables branch April 30, 2023 15:19
dirkf added a commit to dirkf/youtube-dl that referenced this pull request May 3, 2023
Thanks Grub4k for these:
* traverse `Iterable`s, from yt-dlp/yt-dlp#6902, etc
* traverse `set` key for transformations/filters, `re.Match` group names, from
  yt-dlp/yt-dlp@776995b, etc
* traverse `re.Match`es, from yt-dlp/yt-dlp#5174
* always return list when branching, from yt-dlp/yt-dlp#5170
dirkf added a commit to dirkf/youtube-dl that referenced this pull request Jul 18, 2023
Thanks Grub4k for these:
* traverse `Iterable`s, from yt-dlp/yt-dlp#6902, etc
* traverse `set` key for transformations/filters, `re.Match` group names, from
  yt-dlp/yt-dlp@776995b, etc
* traverse `re.Match`es, from yt-dlp/yt-dlp#5174
* always return list when branching, from yt-dlp/yt-dlp#5170
dirkf added a commit to ytdl-org/youtube-dl that referenced this pull request Jul 19, 2023
Thanks Grub4k for these:
* traverse `Iterable`s, from yt-dlp/yt-dlp#6902, etc
* traverse `set` key for transformations/filters, `re.Match` group names, from
  yt-dlp/yt-dlp@776995b, etc
* traverse `re.Match`es, from yt-dlp/yt-dlp#5174
* always return list when branching, from yt-dlp/yt-dlp#5170
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this pull request Apr 21, 2024
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

Successfully merging this pull request may close these issues.

None yet

1 participant