Skip to content

[ie/soundcloud] Extract comments#16938

Merged
bashonly merged 22 commits into
yt-dlp:masterfrom
0xvd:add/soundcloud_comments
Jun 27, 2026
Merged

[ie/soundcloud] Extract comments#16938
bashonly merged 22 commits into
yt-dlp:masterfrom
0xvd:add/soundcloud_comments

Conversation

@0xvd

@0xvd 0xvd commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Description of your pull request and other information

closes #16717

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 those that apply and remove the others:

  • I am the original author of the code in this PR, and I am willing to release it under Unlicense
  • I am not the original author of the code in this PR, but it is in the public domain or released under Unlicense (provide reliable evidence)
  • I have read the policy against AI/LLM contributions and understand I may be blocked from the repository if it is violated

What is the purpose of your pull request? Check those that apply and remove the others:

@0xvd
0xvd requested review from a team and bashonly June 12, 2026 15:49
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
0xvd and others added 3 commits June 13, 2026 10:11
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
0xvd and others added 3 commits June 27, 2026 11:13
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
0xvd and others added 2 commits June 27, 2026 12:41
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment on lines +481 to +482
'start_time': ('timestamp', {float_or_none(scale=1000)}),
'end_time': ('timestamp', {float_or_none(scale=1000)}),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you document these comment dict fields in the yt_dlp.extractor.common.InfoExtractor docstring, please?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added. Sorry If my English/Wording is not perfect.

Comment thread yt_dlp/extractor/soundcloud.py Outdated
Comment thread yt_dlp/extractor/soundcloud.py Outdated
0xvd and others added 2 commits June 27, 2026 13:17
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
bashonly
bashonly previously approved these changes Jun 27, 2026

@bashonly bashonly left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for enduring this review. Looks good now

Comment on lines +464 to +465
yield traverse_obj(comment_dict, {
'id': ('id', {int}, {str_or_none}),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job refactoring this; I realized I should have suggested it this way after-the-fact

Comment thread yt_dlp/extractor/common.py Outdated
@bashonly bashonly changed the title [ie/Soundcloud] Add comments extraction [ie/soundcloud] Add comments support Jun 27, 2026
@bashonly bashonly changed the title [ie/soundcloud] Add comments support [ie/soundcloud] Extract comments Jun 27, 2026
@bashonly
bashonly merged commit 785e507 into yt-dlp:master Jun 27, 2026
21 checks passed
Enucatl pushed a commit to Enucatl/yt-dlp that referenced this pull request Jun 28, 2026
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.

[soundcloud] Comments

2 participants