1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 16:45:17 +00:00

[fancode] Add extractor (#316,#354)

Closes #269, #363

Authored by: rmsmachine
This commit is contained in:
pukkandan
2021-05-30 19:29:00 +05:30
parent a3ed14cbaf
commit b0089e8992
3 changed files with 93 additions and 1 deletions

View File

@ -3530,7 +3530,7 @@ class InfoExtractor(object):
return compat_urllib_parse_unquote(os.path.splitext(url_basename(url))[0])
@staticmethod
def _availability(is_private, needs_premium, needs_subscription, needs_auth, is_unlisted):
def _availability(is_private=None, needs_premium=None, needs_subscription=None, needs_auth=None, is_unlisted=None):
all_known = all(map(
lambda x: x is not None,
(is_private, needs_premium, needs_subscription, needs_auth, is_unlisted)))