-
Notifications
You must be signed in to change notification settings - Fork 25
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
base: main
Are you sure you want to change the base?
Vplatform v2 #49
Conversation
def is_link_suitable(link, extractors): | ||
"""Check if link is valid given an extractor.""" | ||
try: | ||
return any([ie.suitable(link) for ie in extractors]) |
There was a problem hiding this comment.
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"] |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
No description provided.