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/altcensored] Add extractor #8291

Merged
merged 23 commits into from
Nov 16, 2023
Merged

[ie/altcensored] Add extractor #8291

merged 23 commits into from
Nov 16, 2023

Conversation

drzraf
Copy link
Contributor

@drzraf drzraf commented Oct 6, 2023

Description of your pull request and other information

Add an extractor for https://www.altcensored.com

While the website uses archive.org as a backend, support is particularly useful to retrieve playlist from channels (as they used to exist on Youtube.com before removal)

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 9028171

Summary

🆕🌐🎥

Add support for downloading videos and channels from altcensored.com by adding AltCensoredIE and AltCensoredChannelIE classes in altcensored.py and importing them in _extractors.py.

AltCensoredIE
Scrapes censored videos
From archive.org

Walkthrough

  • Add support for downloading videos and channels from altcensored.com (link, link)
    • Import AltCensoredIE and AltCensoredChannelIE classes from altcensored.py module in _extractors.py (link)
    • Define AltCensoredIE and AltCensoredChannelIE classes in altcensored.py module (link)
      • AltCensoredIE delegates extraction to ArchiveOrgIE using the archive.org URL of the video (link)
      • AltCensoredChannelIE scrapes the channel page and returns a playlist of video URLs (link)

@bashonly bashonly added the site-request Request to support a new website label Oct 6, 2023
@bashonly bashonly self-requested a review October 6, 2023 17:27
@drzraf
Copy link
Contributor Author

drzraf commented Oct 21, 2023

friendly ping :) ?

yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
@seproDev seproDev added the pending-fixes PR has had changes requested label Nov 9, 2023
drzraf and others added 8 commits November 12, 2023 10:56
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
support non-www. URL
added some meta (yt_views & category)
test for 1-page only channel
yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
drzraf and others added 4 commits November 13, 2023 00:21
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
@drzraf drzraf requested a review from seproDev November 13, 2023 03:25
@seproDev seproDev added pending-review PR needs a review and removed pending-fixes PR has had changes requested labels Nov 13, 2023
Copy link
Member

@seproDev seproDev left a comment

Choose a reason for hiding this comment

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

Other than this, LGTM

yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
@bashonly bashonly removed the pending-review PR needs a review label Nov 15, 2023
@bashonly bashonly added the pending-fixes PR has had changes requested label Nov 15, 2023
drzraf and others added 6 commits November 15, 2023 21:01
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
@drzraf drzraf requested a review from bashonly November 16, 2023 00:05
@bashonly bashonly removed the pending-fixes PR has had changes requested label Nov 16, 2023
yt_dlp/extractor/altcensored.py Outdated Show resolved Hide resolved
@bashonly bashonly removed the request for review from pukkandan November 16, 2023 00:47
@bashonly bashonly merged commit 3f90813 into yt-dlp:master Nov 16, 2023
15 checks passed
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
site-request Request to support a new website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants