Repository: yt-dlp
Issue: [CSPAN] Warning: unable to extract duration
Labels: site-bug,patch-available

### 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 reporting that a **supported** site is broken
- [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 checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [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)
- [X] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

United States

### Provide a description that is worded well enough to be understood

Downloading CSPAN video of format `hls-299` results in a warning

> `WARNING: [CSpan] unable to extract duration; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U`

(I did not test other formats for the same warning)

Command:
`yt-dlp-2023.03.04.exe -vU --limit-rate 2M --ignore-errors --windows-filenames --trim-filenames 254 --output "%(title)s.%(ext)s" --format hls-299 --verbose "https://www.c-span.org/video/?527798-1/army-fiscal-year-2024-budget-request"`

Using the latest version
```text
PS> yt-dlp-2023.03.04.exe -U
Available version: stable@2023.03.04, Current version: stable@2023.03.04
Current Build Hash: 5590c57bd0433ed239a2deaaf92e2ad6f37fe50f53664c821575cafe106a9421
yt-dlp is up to date (stable@2023.03.04)
```

There are no site credentials. The video `https://www.c-span.org/video/?527798-1/army-fiscal-year-2024-budget-request` is playable using an Incognito browser.

### 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', '--limit-rate', '2M', '--ignore-errors', '--windows-filenames', '--trim-filenames', '254', '--output', '%(title)s.%(ext)s', '--format', 'hls-299', '--verbose', 'https://www.c-span.org/video/?527798-1/army-fiscal-year-2024-budget-request']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.22621-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, 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
Current Build Hash: 5590c57bd0433ed239a2deaaf92e2ad6f37fe50f53664c821575cafe106a9421
yt-dlp is up to date (stable@2023.03.04)
[CSpan] Extracting URL: https://www.c-span.org/video/?527798-1/army-fiscal-year-2024-budget-request
[CSpan] 527798: Downloading webpage
[CSpan] 527798: Downloading m3u8 information
WARNING: [CSpan] Ignoring subtitle tracks found in the HLS manifest; if any subtitle tracks are missing, please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
WARNING: [CSpan] unable to extract duration; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] 527798: Downloading 1 format(s): hls-299
[debug] Invoking hlsnative downloader on "https://m3u8-0.c-spanvideo.org/program/program.627302.360.tsc.m3u8"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 823
[download] Destination: Army Fiscal Year 2024 Budget Request.mp4
[debug] File locking is not supported. Proceeding without locking
[download]   0.5% of ~ 254.03MiB at  811.49KiB/s ETA 03:35 (frag 4/823)
...truncated...
```