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

[ie/youtube] Attempt to extract title for Shorts from accessibilityText as fallback (#11991) #11997

Merged
merged 1 commit into from
Jan 26, 2025

Conversation

d3d9
Copy link
Contributor

@d3d9 d3d9 commented Jan 4, 2025

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

See #11991: When Shorts are accessed e. g. through the Shorts subscriptions feed and with --flat-playlist, there is no title available since the property for that is not present. The full title is contained within the present accessibilityText property though, so it is attempted to extract it from there. A test of 2000 feed entries with various types of titles and view counts resulted in 100% recovered titles. Not sure how to approach adding actual test cases for this yet.

Fixes #11991

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?

…xt as fallback (yt-dlp#11991)

Closes yt-dlp#11991

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
@pukkandan pukkandan added the site-enhancement Feature request for some website label Jan 5, 2025
@bashonly bashonly merged commit 76ac023 into yt-dlp:master Jan 26, 2025
6 checks passed
vladisslav2011 pushed a commit to vladisslav2011/yt-dlp that referenced this pull request Jan 30, 2025
…lp#11997)

Closes yt-dlp#11991
Authored by: d3d9, bashonly

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extract titles from shorts subscriptions feed for flat playlist mode
3 participants