Repository: yt-dlp
Issue: [aenetworks] urlopen error EOF occurred in violation of protocol
Labels: cant-reproduce,site-bug

## Checklist

- [x] I'm reporting a broken site support
- [x] I've verified that I'm running yt-dlp version **2021.10.10**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
- [x] I've searched the bugtracker for similar issues including closed ones
- [x] I've read the opening an issue section in CONTRIBUTING.md
- [x] I have given an appropriate title to the issue


## Verbose log

```
$ /tmp/yt-dlp-2021-10-10 -F -v 'https://play.history.com/shows/historys-greatest-mysteries/season-2/episode-1'
[debug] Command-line config: ['-F', '-v', 'https://play.history.com/shows/historys-greatest-mysteries/season-2/episode-1']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] yt-dlp version 2021.10.10 (zip)
[debug] Python version 3.9.6 (CPython 64bit) - Linux-5.10.52-with-glibc2.33
[debug] exe versions: ffmpeg 4.4, ffprobe 4.4
[debug] Optional libraries: Crypto
[debug] ANSI escape support: stdout = True, stderr = True
[debug] Proxy map: {}
[debug] [aenetworks] Extracting URL: https://play.history.com/shows/historys-greatest-mysteries/season-2/episode-1
[aenetworks] /shows/historys-greatest-mysteries/season-2/episode-1: Downloading JSON metadata
[aenetworks] 1942707779799: Downloading JSON metadata

ERROR: [aenetworks] shows/historys-greatest-mysteries/season-2/episode-1: Unable to download JSON metadata: <urlopen error [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1145)> (caused by URLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1145)')))

ERROR: [aenetworks] shows/historys-greatest-mysteries/season-2/episode-1: Unable to download JSON metadata: <urlopen error EOF occurred in violation of protocol (_ssl.c:1145)> (caused by URLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1145)')))

  File "/tmp/yt-dlp-2021-10-10/yt_dlp/extractor/common.py", line 698, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/tmp/yt-dlp-2021-10-10/yt_dlp/YoutubeDL.py", line 3228, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.9/urllib/request.py", line 517, in open
    response = self._open(req, data)
  File "/usr/lib/python3.9/urllib/request.py", line 534, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 517, in open
    response = self._open(req, data)
  File "/usr/lib/python3.9/urllib/request.py", line 534, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/tmp/yt-dlp-2021-10-10/yt_dlp/utils.py", line 2849, in https_open
    return self.do_open(functools.partial(
  File "/usr/lib/python3.9/urllib/request.py", line 1349, in do_open
    raise URLError(err)
```

## Description

Just started using yt-dlp after switching from its ancestor. Never saw anything like this before with either program. The few other files I have tried (from a different source) have downloaded successfully. The program stops for several minutes after "Downloading JSON metadata" before the rest of the output appears. Sometimes I get the first error message shown above in the log and sometimes I get the second.

Edited: Oops. I just realized that I received the SSL: WRONG_VERSION_NUMBER messag with version 2021.09.25, and after I upgraded to 2021.10.10, I began to get the "urlopen error EOF occurred in violation of protocol" message.