hh
This commit is contained in:
@@ -1861,12 +1861,10 @@ def download_media(opts: DownloadOptions, *, config: Optional[Dict[str, Any]] =
|
||||
probe_result = probe_url(opts.url, no_playlist=opts.no_playlist, timeout_seconds=15, cookiefile=probe_cookiefile)
|
||||
|
||||
if probe_result is None:
|
||||
msg = "yt-dlp could not detect media for this URL; use download-file for direct downloads"
|
||||
if not opts.quiet:
|
||||
log(msg)
|
||||
debug("yt-dlp probe returned no metadata; continuing with direct download attempt")
|
||||
if debug_logger is not None:
|
||||
debug_logger.write_record("ytdlp-skip-no-media", {"url": opts.url})
|
||||
raise DownloadError(msg)
|
||||
debug_logger.write_record("ytdlp-probe-miss-continue", {"url": opts.url})
|
||||
|
||||
ensure_yt_dlp_ready()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user