Repository: yt-dlp
Issue: Pornhub extractor expects URLs that contain /video/get_media as json and fails to parse JSON: Expecting value in '': line 1 column 1 (char 0) 
Labels: NSFW,site-bug

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting a broken site
- [X] I've verified that I'm running yt-dlp version **2022.11.11** ([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 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

Europe

### Provide a description that is worded well enough to be understood

One of the URLs that  `pornhub` extractor collects is matched against `/video/get_media`. Contents of this page is expected to be `json` and expected to contain video URLs and their formats. While that URL is still present on the site it doesn't seem to be usually loaded (could it be a trap?)  when playing content. URL is now served as `html` instead of `json` and `yt-dlp` prints a WARNING: `Failed to parse JSON: Expecting value in '': line 1 column 1 (char 0)`.

While users might find that disturbing it still makes it possible to download videos for them. For developers of the extractor that means failing tests.

This code was originally introduced in `yt-dlp` as 10db0d2f573af31bdaea8e7a010476d896d90f88. Please note that that commit has a typo and it should point to https://github.com/ytdl-org/youtube-dl/commit/7dc513487fb0babb5257fa72df87c3f24967f2a1

I believe there are couple of approaches depending on how you would suggest to gracefully degrade:

a) Completely remove [this](https://github.com/yt-dlp/yt-dlp/blob/7ff2fafe47aa9978f89ff358a8b9f9261430f33a/yt_dlp/extractor/pornhub.py#L445-LL456) section without any replacement. Extractor still works for random URL.

b) Replace with a warning of future removal and wait for users to report that they cannot download their content and hope they include this warning.

### 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://www.pornhub.com/view_video.php?viewkey=ph5e79d0527ffae']
[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.11.11 [8b644025b] (source)
[debug] Lazy loading extractors is disabled
[debug] Plugins: ['SamplePluginIE', 'SamplePluginPP']
[debug] Git HEAD: 7ff2fafe4
[debug] Python 3.10.8 (CPython x86_64 64bit) - Linux-6.0.8-200.fc36.x86_64-x86_64-with-glibc2.35 (OpenSSL 3.0.5 5 Jul 2022, glibc 2.35)
[debug] exe versions: ffmpeg 5.0.1 (setts), ffprobe 5.0.1
[debug] Optional libraries: sqlite3-2.6.0
[debug] Proxy map: {}
[debug] Loaded 1726 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.11.11, Current version: 2022.11.11
yt-dlp is up to date (2022.11.11)
[debug] [PornHub] Extracting URL: https://www.pornhub.com/view_video.php?viewkey=ph5e79d0527ffae
[PornHub] ph5e79d0527ffae: Downloading pc webpage
[PornHub] ph5e79d0527ffae: Downloading m3u8 information
[PornHub] ph5e79d0527ffae: Downloading m3u8 information
[PornHub] ph5e79d0527ffae: Downloading m3u8 information
[PornHub] ph5e79d0527ffae: Downloading m3u8 information
[PornHub] ph5e79d0527ffae: Downloading JSON metadata
WARNING: [PornHub] ph5e79d0527ffae: Failed to parse JSON: Expecting value in '': line 1 column 1 (char 0)
[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
[debug] Default format spec: bestvideo*+bestaudio/best
[info] ph5e79d0527ffae: Downloading 1 format(s): hls-1862
[debug] Invoking hlsnative downloader on "https://ev-h.phncdn.com/hls/videos/202003/24/296184861/,1080P_4000K,720P_4000K,480P_2000K,240P_400K,_296184861.mp4.urlset/index-f1-v1-a1.m3u8?validfrom=1669067088&validto=1669074288&ipa=89.176.11.244&hdl=-1&hash=Qp35ZaSjle09AMm165nQ1x5vKm8%3D"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 248
[download] Destination: This Lego forklift has the power to lift your coronavirus depression [ph5e79d0527ffae].mp4
[download]  73.8% of ~ 226.24MiB at    2.43MiB/s ETA 00:29 (frag 183/248)[download] Got error: The read operation timed out. Retrying (1/10)...
[download] 100% of  229.98MiB in 00:02:03 at 1.86MiB/s
[debug] ffprobe command line: ffprobe -hide_banner -show_format -show_streams -print_format json 'file:This Lego forklift has the power to lift your coronavirus depression [ph5e79d0527ffae].mp4'
[FixupM3u8] Fixing MPEG-TS in MP4 container of "This Lego forklift has the power to lift your coronavirus depression [ph5e79d0527ffae].mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:This Lego forklift has the power to lift your coronavirus depression [ph5e79d0527ffae].mp4' -map 0 -dn -ignore_unknown -c copy -f mp4 -bsf:a aac_adtstoasc -movflags +faststart 'file:This Lego forklift has the power to lift your coronavirus depression [ph5e79d0527ffae].temp.mp4'
```