8000
Skip to content

[ie/RTP] Fix subtitle extraction in RTP extractor#16361

Open
red-acid wants to merge 1 commit intoyt-dlp:masterfrom
red-acid:master 8000
Open

[ie/RTP] Fix subtitle extraction in RTP extractor#16361
red-acid wants to merge 1 commit intoyt-dlp:masterfrom
red-acid:master

Conversation

@red-acid
Copy link
Copy Markdown
Contributor

Description of your pull request and other information

Based on the previous changes included in #13625, this PR fixes the subtitle extraction logic:

  • Retrieves subtitles from the correct asset_data field instead of asset_urls in the main _extract_from_api
  • Fixes extraction in the fallback _extract_from_html
  • Adds a test for an episode with subtitles
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:

  • Fix or improvement to an extractor (Make sure to add/update tests)

@red-acid
Copy link
Copy Markdown
Contributor Author
red-acid commented Mar 27, 2026

@bashonly please review so we can squash the last outstanding extractor issue. Thank you!

@doe1080 doe1080 added the site-bug Issue with a specific website label Apr 1, 2026
Updated subtitle extraction logic to retrieve them from `asset_data` instead of `asset_urls`  on main `_extract_from_api`, and fixed extraction on the fallback `_extract_from_html`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

site-bug Issue with a specific website

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0