Repository: youtube-dl
Issue: Cannot extract from RTP play [maybe similar to #26657]
Labels: duplicate

## Checklist

- [x] I'm reporting a broken site support
- [x] I've verified that I'm running youtube-dl version **2021.06.06**
- [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


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://www.rtp.pt/play/p5355/as-horas-extraordinarias
- Single video: https://www.rtp.pt/play/p8291/e555562/o-ultimo-apaga-a-luz


## Verbose log

```
C:\Program Files\youtube-dl>youtube-dl -v https://www.rtp.pt/play/p8291/e555562/o-ultimo-apaga-a-luz
[debug] System config: []
[debug] User config: ['-f', 'mp4', '-o', 'C:/Users/ricar/Videos/%(title)s.%(ext)s', '--no-mtime']
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.rtp.pt/play/p8291/e555562/o-ultimo-apaga-a-luz']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg 2021-06-30-git-de8e6e67e7-full_build-www.gyan.dev, ffprobe 2021-06-30-git-de8e6e67e7-full_build-www.gyan.dev
[debug] Proxy map: {}
[RTP] e555562: Downloading webpage
ERROR: e555562: Failed to parse JSON  (caused by ValueError("Expecting ',' delimiter: line 2 column 36 (char 37)",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\extractor\common.py", line 906, in _parse_json
  File "C:\Python\Python34\lib\json\__init__.py", line 318, in loads
  File "C:\Python\Python34\lib\json\decoder.py", line 343, in decode
  File "C:\Python\Python34\lib\json\decoder.py", line 359, in raw_decode
ValueError: Expecting ',' delimiter: line 2 column 36 (char 37)
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\extractor\common.py", line 906, in _parse_json
  File "C:\Python\Python34\lib\json\__init__.py", line 318, in loads
  File "C:\Python\Python34\lib\json\decoder.py", line 343, in decode
  File "C:\Python\Python34\lib\json\decoder.py", line 359, in raw_decode
ValueError: Expecting ',' delimiter: line 2 column 36 (char 37)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 815, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 836, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\extractor\common.py", line 534, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\extractor\rtp.py", line 37, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\extractor\common.py", line 910, in _parse_json
youtube_dl.utils.ExtractorError: e555562: Failed to parse JSON  (caused by ValueError("Expecting ',' delimiter: line 2 column 36 (char 37)",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

```

## Description

Cannot download and merge any videos from RTP play website at https://www.rtp.pt/player. RTP is the Portuguese public television broadcaster, and videos of most programmes are freely available at their website. When trying to use youtube-dl to pull any videos from this site the "failed to parse JSON" error occurs. Tried with many different freely available programmes, always the same error. 

I've read previous reports concerning RTP play, including older ones apparently similar (see #24073, itself a duplicate of an even older one), but since issues continue to pop up on newer versions of yt-dl and things have definitely been changed on RTP's side since recently, i've decided to contribute the bug report to keep the heads up on the ongoing issues with the site. Seems like RTP is playing a cat-and-mouse game with yt-dl :angry: