ytdl-org/youtube-dl · error · ExtractorError
Failed to extract %s: Could not parse value %r
Error message
Failed to extract %s: Could not parse value %r
What it means
Error "Failed to extract %s: Could not parse value %r" thrown in ytdl-org/youtube-dl.
Source
Thrown at youtube_dl/extractor/common.py:3191
if rtmp_params:
a_format.update(rtmp_params)
formats.append(a_format)
return formats
def _live_title(self, name):
""" Generate the title for a live video """
now = datetime.datetime.now()
now_str = now.strftime('%Y-%m-%d %H:%M')
return name + ' ' + now_str
def _int(self, v, name, fatal=False, **kwargs):
res = int_or_none(v, **kwargs)
if 'get_attr' in kwargs:
print(getattr(v, kwargs['get_attr']))
if res is None:
msg = 'Failed to extract %s: Could not parse value %r' % (name, v)
if fatal:
raise ExtractorError(msg)
else:
self.report_warning(msg)
return res
def _float(self, v, name, fatal=False, **kwargs):
res = float_or_none(v, **kwargs)
if res is None:
msg = 'Failed to extract %s: Could not parse value %r' % (name, v)
if fatal:
raise ExtractorError(msg)
else:
self.report_warning(msg)
return res
def _set_cookie(self, domain, name, value, expire_time=None, port=None,
path='/', secure=False, discard=False, rest={}, **kwargs):
cookie = compat_cookiejar_Cookie(
0, name, value, port, port is not None, domain, True,View on GitHub (pinned to 956b8c5855)
Solutions
- Update youtube-dl; the value format on the site changed and cannot be parsed.
When it happens
Trigger: Thrown at youtube_dl/extractor/common.py:3191 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ytdl-org/youtube-dl@956b8c5855 (2026-08-14).
Data as JSON: /api/errors/e89a49f0101cd27a.
Report an issue: GitHub.