mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 01:02:13 +01:00
parent
700ccbe3f1
commit
231025c463
3 changed files with 5 additions and 5 deletions
|
@ -24,10 +24,9 @@ def main():
|
||||||
def gen_ies_md(ies):
|
def gen_ies_md(ies):
|
||||||
for ie in ies:
|
for ie in ies:
|
||||||
ie_md = '**{0}**'.format(ie.IE_NAME)
|
ie_md = '**{0}**'.format(ie.IE_NAME)
|
||||||
ie_desc = getattr(ie, 'IE_DESC', None)
|
if ie.IE_DESC is False:
|
||||||
if ie_desc is False:
|
|
||||||
continue
|
continue
|
||||||
if ie_desc is not None:
|
if ie.IE_DESC is not None:
|
||||||
ie_md += ': {0}'.format(ie.IE_DESC)
|
ie_md += ': {0}'.format(ie.IE_DESC)
|
||||||
search_key = getattr(ie, 'SEARCH_KEY', None)
|
search_key = getattr(ie, 'SEARCH_KEY', None)
|
||||||
if search_key is not None:
|
if search_key is not None:
|
||||||
|
|
|
@ -94,9 +94,9 @@ def print_extractor_information(opts, urls):
|
||||||
for ie in list_extractors(opts.age_limit):
|
for ie in list_extractors(opts.age_limit):
|
||||||
if not ie.working():
|
if not ie.working():
|
||||||
continue
|
continue
|
||||||
desc = getattr(ie, 'IE_DESC', ie.IE_NAME)
|
if ie.IE_DESC is False:
|
||||||
if desc is False:
|
|
||||||
continue
|
continue
|
||||||
|
desc = ie.IE_DESC or ie.IE_NAME
|
||||||
if getattr(ie, 'SEARCH_KEY', None) is not None:
|
if 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')
|
_SEARCHES = ('cute kittens', 'slithering pythons', 'falling cat', 'angry poodle', 'purple fish', 'running tortoise', 'sleeping bunny', 'burping cow')
|
||||||
_COUNTS = ('', '5', '10', 'all')
|
_COUNTS = ('', '5', '10', 'all')
|
||||||
|
|
|
@ -469,6 +469,7 @@ class InfoExtractor(object):
|
||||||
_GEO_IP_BLOCKS = None
|
_GEO_IP_BLOCKS = None
|
||||||
_WORKING = True
|
_WORKING = True
|
||||||
_NETRC_MACHINE = None
|
_NETRC_MACHINE = None
|
||||||
|
IE_DESC = None
|
||||||
|
|
||||||
_LOGIN_HINTS = {
|
_LOGIN_HINTS = {
|
||||||
'any': 'Use --cookies, --cookies-from-browser, --username and --password, or --netrc to provide account credentials',
|
'any': 'Use --cookies, --cookies-from-browser, --username and --password, or --netrc to provide account credentials',
|
||||||
|
|
Loading…
Reference in a new issue