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

Vplatform v2 #49

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Vplatform v2 #49

wants to merge 7 commits into from

Conversation

rom1504
Copy link
Owner

@rom1504 rom1504 commented Nov 15, 2023

No description provided.

does not actually work well
@rom1504 rom1504 mentioned this pull request Nov 15, 2023
def is_link_suitable(link, extractors):
"""Check if link is valid given an extractor."""
try:
return any([ie.suitable(link) for ie in extractors])
Copy link
Owner Author

Choose a reason for hiding this comment

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

wouldn't make a huge difference but we can at least early stop if any extractor accepts it

import unicodedata

generic_extractors = [yt_dlp.extractor.generic.GenericIE, yt_dlp.extractor.lazy_extractors.GenericIE]
porn_patterns = ["porn", "adult", "xxx", "xvideos", "xhamster", "redtube", "xtube", "xstream", "xfileshare", "sex"]
Copy link

Choose a reason for hiding this comment

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

add "tnaflix" in the list of porn patterns

Copy link

Choose a reason for hiding this comment

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

we need also to exclude http://xnxx.com, i.e. add "xnxx" in the list of porn patterns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Important to finish
Development

Successfully merging this pull request may close these issues.

2 participants