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

Generic extractor overhaul #12

Closed
wants to merge 1 commit into from
Closed

Generic extractor overhaul #12

wants to merge 1 commit into from

Conversation

pukkandan
Copy link
Member

The embed detection in generic extractor is currently a total mess. Each extractor has to explicitly define it's embed detection in generic.py seperately. Many embeds can actually be detected by using functions already in the extractor, but there is no code to automatically do this.

Given how strict the youtube-dl devs are about code maintainability, I have no idea how it got this messed up. Anyhow, I am going to try and clean it up, even if only partially

This PR attempts to:

  1. [WIP] Move detection of embedded videos to the respective extractors
  2. [WIP] Automatically detect embeds that match extract_urls or similar functions without having to explicitly define their embed detection
  3. [TODO] Automatically detect embedding of URLs that already match _VALID_URL
  4. [DONE] Ability to detect multiple embeds by different extractors on the same page. (Example link from MKV thumbnail doesn't show in file manager #204)

Status: the PR is currently usable though far from being optimal

@pukkandan
Copy link
Member Author

@einstein95 It has nothing to do with this PR. Please open a new issue

@pukkandan
Copy link
Member Author

This PR is too large and outdated that it's hopeless to continue from this branch. I'll implement this separately, and in stages

@pukkandan pukkandan closed this Jan 19, 2022
@pukkandan pukkandan deleted the generic-overhaul branch January 19, 2022 13:11
nswanberg pushed a commit to nswanberg/yt-dlp that referenced this pull request Jul 29, 2023
…_in_ch_name

hot fix for special chars in channel name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant