A feature-rich command-line audio/video downloader
Fix bug in 52efa4b31200119adaa8acf33e50b84fcb6948f0
pukkandan231025c4632d
diff --git a/devscripts/make_supportedsites.py b/devscripts/make_supportedsites.pyindex 4c11e25f28..729f60a0e7 100644--- a/devscripts/make_supportedsites.py+++ b/devscripts/make_supportedsites.py@@ -24,10 +24,9 @@ def main():def gen_ies_md(ies):for ie in ies:ie_md = '**{0}**'.format(ie.IE_NAME)- ie_desc = getattr(ie, 'IE_DESC', None)- if ie_desc is False:+ if ie.IE_DESC is False:continue- if ie_desc is not None:+ if ie.IE_DESC is not None:ie_md += ': {0}'.format(ie.IE_DESC)search_key = getattr(ie, 'SEARCH_KEY', None)if search_key is not None:diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.pyindex a433c4513b..a445d86212 100644--- a/yt_dlp/__init__.py+++ b/yt_dlp/__init__.py@@ -94,9 +94,9 @@ def print_extractor_information(opts, urls):for ie in list_extractors(opts.age_limit):if not ie.working():continue- desc = getattr(ie, 'IE_DESC', ie.IE_NAME)- if desc is False:+ if ie.IE_DESC is False:continue+ desc = ie.IE_DESC or ie.IE_NAMEif getattr(ie, 'SEARCH_KEY', None) is not None:_SEARCHES = ('cute kittens', 'slithering pythons', 'falling cat', 'angry poodle', 'purple fish', 'running tortoise', 'sleeping bunny', 'burping cow')_COUNTS = ('', '5', '10', 'all')diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.pyindex e1a6610337..a2e41db3b9 100644--- a/yt_dlp/extractor/common.py+++ b/yt_dlp/extractor/common.py@@ -469,6 +469,7 @@ class InfoExtractor(object):_GEO_IP_BLOCKS = None_WORKING = True_NETRC_MACHINE = None+ IE_DESC = None_LOGIN_HINTS = {'any': 'Use --cookies, --cookies-from-browser, --username and --password, or --netrc to provide account credentials',