Repository: yt-dlp
Issue: Kaltura Invalid entry id for post-livestream video
Labels: site-bug,triage

### Checklist

- [X] I'm reporting a broken site
- [X] I've verified that I'm running yt-dlp version **2022.07.18** ([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/ytdl-org/youtube-dl#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 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

All (accessing from United Kingdom)

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

Downloading some videos ([example here](https://digitalmedia.sheffield.ac.uk/media/Graduation+Ceremonies+Monday+July+2022+12.15/1_pwwsbwk2)) from the University of Sheffield's Kaltura gives the following error:

`$ yt-dlp "https://digitalmedia.sheffield.ac.uk/media/Graduation+Ceremonies+Monday+July+2022+12.15/1_pwwsbwk2"`
> ERROR: [Kaltura] 1_pwwsbwk2: Kaltura said: Invalid entry id ["1_pwwsbwk2"] (1); 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

However, most videos ([example](https://digitalmedia.sheffield.ac.uk/media/Your+Exam-+Do%27s+and+Don%27ts/1_fvpbadvy)) download fine.

I suspect this is because the failing video is a finished livestream available to watch back, whereas the successful video was uploaded normally. I was unable to find a livestreamed video which did not have this issue, or an uploaded video which did.


### 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] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-vU', 'https://digitalmedia.sheffield.ac.uk/media/Graduation+Ceremonies+Monday+July+2022+12.15/1_pwwsbwk2']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.07.18 [135f05e]
[debug] Python 3.9.13 (CPython 64bit) - macOS-12.4-arm64-arm-64bit
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 5.0.1 (setts), ffprobe 5.0.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.07.18, Current version: 2022.07.18
yt-dlp is up to date (2022.07.18)
[debug] [generic] Extracting URL: https://digitalmedia.sheffield.ac.uk/media/Graduation+Ceremonies+Monday+July+2022+12.15/1_pwwsbwk2
[generic] 1_pwwsbwk2: Downloading webpage
WARNING: [generic] Falling back on generic information extractor.
[generic] 1_pwwsbwk2: Extracting information
[debug] Looking for video embeds
[download] Downloading playlist: Graduation Ceremonies Monday July 2022 12.15
[generic] Playlist Graduation Ceremonies Monday July 2022 12.15: Downloading 1 videos of 1
[download] Downloading video 1 of 1
[debug] [Kaltura] Extracting URL: kaltura:2103181:1_pwwsbwk2#__youtubedl_smuggle=%7B%22source_url%22%3A+%22https%3A%2F%2Fdigitalmedia.sheffield.ac.uk%2Fmedia%2FGraduation%2BCeremonies%2BMonday%2BJuly%2B2022%2B12.15%2F1_pwwsbwk2%22%2C+%22service_url%22%3A+%22https%3A%2F%2Fcdnapisec.kaltura.com%22%7D
[Kaltura] 1_pwwsbwk2: Downloading video info JSON
ERROR: [Kaltura] 1_pwwsbwk2: Kaltura said: Invalid entry id ["1_pwwsbwk2"] (1); 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
  File "/opt/homebrew/Cellar/yt-dlp/2022.7.18/libexec/lib/python3.9/site-packages/yt_dlp/extractor/common.py", line 644, in extract
    ie_result = self._real_extract(url)
  File "/opt/homebrew/Cellar/yt-dlp/2022.7.18/libexec/lib/python3.9/site-packages/yt_dlp/extractor/kaltura.py", line 244, in _real_extract
    _, info, flavor_assets, captions = self._get_video_info(entry_id, partner_id, smuggled_data.get('service_url'))
  File "/opt/homebrew/Cellar/yt-dlp/2022.7.18/libexec/lib/python3.9/site-packages/yt_dlp/extractor/kaltura.py", line 233, in _get_video_info
    return self._kaltura_api_call(
  File "/opt/homebrew/Cellar/yt-dlp/2022.7.18/libexec/lib/python3.9/site-packages/yt_dlp/extractor/kaltura.py", line 188, in _kaltura_api_call
    raise ExtractorError(

[download] Finished downloading playlist: Graduation Ceremonies Monday July 2022 12.15
```