Repository: yt-dlp
Issue: [Elonet] `Unable to extract json`
Labels: site-bug,triage

### 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 yt-dlp is broken on a **supported** site
- [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [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)
- [ ] 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

_No response_

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

Example URL: https://elonet.finna.fi/Record/kavi.elonet_elokuva_107867


yt-dlp can't download from [elonet.finna.fi](https://elonet.finna.fi) anymore.
I'm still able to get [a downloadable m3u8 URL](https://d2ygzyc0kuitls.cloudfront.net/suitevodedge/_definst_/smil/256248057.smil/playlist.m3u8) from the [frame](https://players.icareus.com/elonet/embed/vod/256248057) source, so I'm not sure where the issue is exactly.

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] 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', 'test:elonet']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8 (No VT), error utf-8 (No VT), screen utf-8 (No VT)
[debug] yt-dlp version nightly@2024.11.10.232816 from yt-dlp/yt-dlp-nightly-builds [b83ca24eb] (win_exe)
[debug] Python 3.10.11 (CPython AMD64 64bit) - Windows-8.1-6.3.9600-SP0 (OpenSSL 1.1.1t  7 Feb 2023)
[debug] exe versions: ffmpeg 4.3, ffprobe 2022-07-24-git-39a538f430-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.21.0, brotli-1.1.0, certifi-2024.08.30, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.40.1, urllib3-2.2.3, websockets-13.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1839 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: nightly@2024.11.10.232816 from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date (nightly@2024.11.10.232816 from yt-dlp/yt-dlp-nightly-builds)
[TestURL] Extracting URL: test:elonet
[TestURL] Test URL: https://elonet.finna.fi/Record/kavi.elonet_elokuva_107867
[Elonet] Extracting URL: https://elonet.finna.fi/Record/kavi.elonet_elokuva_107867
[Elonet] 107867: Downloading webpage
ERROR: [Elonet] 107867: Unable to extract json; 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 "yt_dlp\extractor\common.py", line 742, in extract
  File "yt_dlp\extractor\elonet.py", line 45, in _real_extract
  File "yt_dlp\extractor\common.py", line 1382, in _html_search_regex
  File "yt_dlp\extractor\common.py", line 1346, in _search_regex


# Using the m3u8 URL
[debug] Command-line config: ['-v', 'https://d2ygzyc0kuitls.cloudfront.net/suitevodedge/_definst_/smil/256248057.smil/playlist.m3u8']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8 (No VT), error utf-8 (No VT), screen utf-8 (No VT)
[debug] yt-dlp version nightly@2024.11.10.232816 from yt-dlp/yt-dlp-nightly-builds [b83ca24eb] (win_exe)
[debug] Python 3.10.11 (CPython AMD64 64bit) - Windows-8.1-6.3.9600-SP0 (OpenSSL 1.1.1t  7 Feb 2023)
[debug] exe versions: ffmpeg 4.3, ffprobe 2022-07-24-git-39a538f430-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.21.0, brotli-1.1.0, certifi-2024.08.30, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.40.1, urllib3-2.2.3, websockets-13.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1839 extractors
[generic] Extracting URL: https://d2ygzyc0kuitls.cloudfront.net/suitevodedge/_definst_/smil/256248057.smil/playlist.m3u8
[generic] playlist: Downloading webpage
[debug] Identified a direct video link
[generic] playlist: Downloading m3u8 information
[generic] playlist: Checking m3u8 live status
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec, channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] playlist: Downloading 1 format(s): 4128
[debug] Invoking hlsnative downloader on "https://d2ygzyc0kuitls.cloudfront.net/suitevodedge/_definst_/smil/256248057.smil/chunklist_b4128000_cfc21pbC8yNTYyNDgwNTcudHRtbA==.m3u8"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 671
[download] Destination: playlist [playlist].mp4
[debug] File locking is not supported. Proceeding without locking
[download] 100% of    2.48GiB in 00:13:11 at 3.21MiB/s
[debug] ffprobe command line: ffprobe -hide_banner -show_format -show_streams -print_format json "file:playlist [playlist].mp4"
[debug] ffmpeg command line: ffprobe -show_streams "file:playlist [playlist].mp4"
[FixupM3u8] Fixing MPEG-TS in MP4 container of "playlist [playlist].mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i "file:playlist [playlist].mp4" -map 0 -dn -ignore_unknown -c copy -f mp4 -bsf:a aac_adtstoasc -movflags +faststart "file:playlist [playlist].temp.mp4"
```