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

[extractor/motherless] Adding Gallery and fixing #7211

Merged
merged 8 commits into from
Jun 22, 2023

Conversation

rexlambert22
Copy link
Contributor

@rexlambert22 rexlambert22 commented Jun 3, 2023

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

Adds motherless galleries as a playlist type and improves motherless extractor generally.

Based on PR #3948 but that is dead and, at least at this point, doesn't work.

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?

Copilot Summary

🤖 Generated by Copilot at 9d0fb58

Summary

🚀🗣️🔒

Add support for --write-link and --write-url options to write video or playlist URLs to a file. Refactor the code for writing metadata files to avoid duplication and improve readability.

is_valid checks
refactored for clarity
autumn leaves falling

Walkthrough

  • Add new extractors for various video platforms (F0L

@pukkandan
Copy link
Member

pukkandan commented Jun 3, 2023

Don't use abc. This is not a public API, so there is no benefit. So necessary changes to lazy-extractors aren't worth it

@pukkandan pukkandan added NSFW site-request Request to support a new website labels Jun 3, 2023
@rexlambert22
Copy link
Contributor Author

@pukkandan, could you allow the tests to run again?

@rexlambert22
Copy link
Contributor Author

@pukkandan, tests pass. Let me know if there's anything else that needs to be done.

@rexlambert22
Copy link
Contributor Author

@bashonly @pukkandan, anything additional that needs to be done on this? Should this be marked as needs review?

yt_dlp/extractor/motherless.py Outdated Show resolved Hide resolved
yt_dlp/extractor/motherless.py Outdated Show resolved Hide resolved
yt_dlp/extractor/motherless.py Outdated Show resolved Hide resolved
yt_dlp/extractor/motherless.py Outdated Show resolved Hide resolved
yt_dlp/extractor/motherless.py Outdated Show resolved Hide resolved
yt_dlp/extractor/motherless.py Outdated Show resolved Hide resolved
@bashonly bashonly added the pending-fixes PR has had changes requested label Jun 18, 2023
Copy link
Contributor Author

@rexlambert22 rexlambert22 left a comment

Choose a reason for hiding this comment

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

A number of recommended changes for Motherless extractor

rexlambert22 and others added 2 commits June 20, 2023 16:23
* Exception for abstract method
* Try to avoid matching videos from groups or galleries using regex only

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
* Category extraction improved
* Fix a test case
* Reverted changes to uploader and comment count extraction
yt_dlp/extractor/motherless.py Outdated Show resolved Hide resolved
yt_dlp/extractor/motherless.py Outdated Show resolved Hide resolved
@bashonly bashonly added pending-review PR needs a review and removed pending-fixes PR has had changes requested labels Jun 20, 2023
rexlambert22 and others added 2 commits June 21, 2023 15:30
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
yt_dlp/extractor/motherless.py Show resolved Hide resolved
@bashonly bashonly merged commit f2ff0f6 into yt-dlp:master Jun 22, 2023
11 checks passed
@rexlambert22 rexlambert22 deleted the motherless branch June 22, 2023 00:20
@bashonly bashonly removed the pending-review PR needs a review label Sep 2, 2023
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
NSFW site-request Request to support a new website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants