A feature-rich command-line audio/video downloader
Bypass interactive format selection if no formats are found (#15278)
bashonlye0bb4777328a
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.pyindex 539b10fe29..b9bc9c9caa 100644--- a/yt_dlp/YoutubeDL.py+++ b/yt_dlp/YoutubeDL.py@@ -3026,6 +3026,10 @@ class YoutubeDL:format_selector = self.format_selectorwhile True:if interactive_format_selection:+ if not formats:+ # Bypass interactive format selection if no formats & --ignore-no-formats-error+ formats_to_download = None+ breakreq_format = input(self._format_screen('\nEnter format selector ', self.Styles.EMPHASIS)+ '(Press ENTER for default, or Ctrl+C to quit)'+ self._format_screen(': ', self.Styles.EMPHASIS))