Repository: yt-dlp
Issue: Upper limit to maximum wait time / reattempts with option `--wait-for-video`
Labels: enhancement

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm requesting a feature unrelated to a specific site
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've verified that I'm running yt-dlp version **2023.03.04** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Provide a description that is worded well enough to be understood

When using the option `--wait-for-video`, yt-dlp seems to ignore `--retries` option and will infinitely reattempt to download the video (this may be a bug, but I'm not entirely sure).  Being able to configure it to only wait for streams scheduled to start within `X`-amount of time in the future and/or skip after `X` failed attempts would be useful.

When using a script to archive a streamer's channel, it can be desirable to have the script wait a few hours to record a stream live, but one wouldn't want it to wait for a stream scheduled a few days, weeks, or even a year in the future (several streamers on YouTube use a stream scheduled for 1 year in the future as a makeshift version of Twitch's "Offline Chat").

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [X] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-vU', '--retries', '5', '--wait-for-video', '0-5', '--live-from-start', 'https://www.youtube.com/watch?v=NB11zj6Rrek']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out UTF-8, error UTF-8, screen UTF-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d] (pip)
[debug] Python 3.7.16 (CPython x86_64 64bit) - Linux-5.4.0-144-generic-x86_64-with-Ubuntu-18.04-bionic (OpenSSL 1.1.1  11 Sep 2018, glibc 2.26)
[debug] exe versions: ffmpeg N-103180-g7dfdc15a27 (fdk,setts), ffprobe N-103180-g7dfdc15a27, phantomjs 2.1.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.09.24, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1786 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.03.04, Current version: stable@2023.03.04
yt-dlp is up to date (stable@2023.03.04)
[youtube] Extracting URL: https://www.youtube.com/watch?v=NB11zj6Rrek
[youtube] NB11zj6Rrek: Downloading webpage
[youtube] NB11zj6Rrek: Downloading android player API JSON
WARNING: [youtube] This live event will begin in 356 days.
[wait] Waiting for 00:00:05 - Press Ctrl+C to try now
[wait] Wait period ended; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=NB11zj6Rrek
[youtube] NB11zj6Rrek: Downloading webpage
[youtube] NB11zj6Rrek: Downloading android player API JSON
WARNING: [youtube] This live event will begin in 356 days.
[wait] Waiting for 00:00:05 - Press Ctrl+C to try now
[wait] Wait period ended; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=NB11zj6Rrek
[youtube] NB11zj6Rrek: Downloading webpage
[youtube] NB11zj6Rrek: Downloading android player API JSON
WARNING: [youtube] This live event will begin in 356 days.
[wait] Waiting for 00:00:05 - Press Ctrl+C to try now
[wait] Wait period ended; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=NB11zj6Rrek
[youtube] NB11zj6Rrek: Downloading webpage
[youtube] NB11zj6Rrek: Downloading android player API JSON
WARNING: [youtube] This live event will begin in 356 days.
[wait] Waiting for 00:00:05 - Press Ctrl+C to try now
[wait] Wait period ended; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=NB11zj6Rrek
[youtube] NB11zj6Rrek: Downloading webpage
[youtube] NB11zj6Rrek: Downloading android player API JSON
WARNING: [youtube] This live event will begin in 356 days.
[wait] Waiting for 00:00:05 - Press Ctrl+C to try now
[wait] Wait period ended; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=NB11zj6Rrek
[youtube] NB11zj6Rrek: Downloading webpage
[youtube] NB11zj6Rrek: Downloading android player API JSON
WARNING: [youtube] This live event will begin in 356 days.
[wait] Waiting for 00:00:05 - Press Ctrl+C to try now
[wait] Wait period ended; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=NB11zj6Rrek
[youtube] NB11zj6Rrek: Downloading webpage
[youtube] NB11zj6Rrek: Downloading android player API JSON
WARNING: [youtube] This live event will begin in 356 days.
[wait] Waiting for 00:00:05 - Press Ctrl+C to try now
[wait] Wait period ended; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=NB11zj6Rrek
[youtube] NB11zj6Rrek: Downloading webpage
[youtube] NB11zj6Rrek: Downloading android player API JSON
WARNING: [youtube] This live event will begin in 356 days.
[wait] Waiting for 00:00:05 - Press Ctrl+C to try now
[wait] Wait period ended; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=NB11zj6Rrek
[youtube] NB11zj6Rrek: Downloading webpage
[youtube] NB11zj6Rrek: Downloading android player API JSON
WARNING: [youtube] This live event will begin in 356 days.
[wait] Waiting for 00:00:05 - Press Ctrl+C to try now
[wait] Wait period ended; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=NB11zj6Rrek
[youtube] NB11zj6Rrek: Downloading webpage
[youtube] NB11zj6Rrek: Downloading android player API JSON
WARNING: [youtube] This live event will begin in 356 days.
[wait] Waiting for 00:00:05 - Press Ctrl+C to try now
[wait] Wait period ended; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=NB11zj6Rrek
[youtube] NB11zj6Rrek: Downloading webpage
[youtube] NB11zj6Rrek: Downloading android player API JSON
WARNING: [youtube] This live event will begin in 356 days.
[wait] Waiting for 00:00:05 - Press Ctrl+C to try now
[wait] Wait period ended; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=NB11zj6Rrek
[youtube] NB11zj6Rrek: Downloading webpage
[youtube] NB11zj6Rrek: Downloading android player API JSON
WARNING: [youtube] This live event will begin in 356 days.
[wait] Waiting for 00:00:05 - Press Ctrl+C to try now
[wait] Wait period ended; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=NB11zj6Rrek
[youtube] NB11zj6Rrek: Downloading webpage
[youtube] NB11zj6Rrek: Downloading android player API JSON
WARNING: [youtube] This live event will begin in 356 days.
[wait] Waiting for 00:00:05 - Press Ctrl+C to try now
[wait] Wait period ended; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=NB11zj6Rrek
[youtube] NB11zj6Rrek: Downloading webpage
[youtube] NB11zj6Rrek: Downloading android player API JSON
WARNING: [youtube] This live event will begin in 356 days.
[wait] Waiting for 00:00:05 - Press Ctrl+C to try now
[wait] Interrupted by user; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=NB11zj6Rrek
[youtube] NB11zj6Rrek: Downloading webpage
[youtube] NB11zj6Rrek: Downloading android player API JSON
WARNING: [youtube] This live event will begin in 356 days.
[wait] Waiting for 00:00:05 - Press Ctrl+C to try now
[wait] Interrupted by user; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=NB11zj6Rrek
[youtube] NB11zj6Rrek: Downloading webpage
[youtube] NB11zj6Rrek: Downloading android player API JSON
^C
ERROR: Interrupted by user
```