Repository: yt-dlp
Issue: can't download from Pluralsight because of JSON Decode Error
Labels: account-needed,site-bug,can-share-account

### 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

Egypt

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

related to https://github.com/yt-dlp/yt-dlp/issues/4551 i tied to use my email and password but it told me it's not supported for the site try cookies so i did but still it told me that it failed to parse json

### 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
yt-dlp -P "/mnt/e/Downloads/youtube-dl/Pluralsight" -o "%(playlist)s/%(playlist_index)s - %(title)s-%(id)s.%(ext)s" -f "(mp4)[height<=1080]" --cookies "/mnt/e/Downloads/youtube-dl/cookies.txt" -vU https://app.pluralsight.com/library/courses/dotnet-core-testing-code-xunit-dotnet-getting-started
[debug] Command-line config: ['-P', '/mnt/e/Downloads/youtube-dl/Pluralsight', '-o', '%(playlist)s/%(playlist_index)s - %(title)s-%(id)s.%(ext)s', '-f', '(mp4)[height<=1080]', '--cookies', '/mnt/e/Downloads/youtube-dl/cookies.txt', '-vU', 'https://app.pluralsight.com/library/courses/dotnet-core-testing-code-xunit-dotnet-getting-started']
[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] (zip)
[debug] Python 3.8.10 (CPython 64bit) - Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29 (glibc 2.31)
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 4.2.7, ffprobe 4.2.7
[debug] Optional libraries: certifi-2019.11.28, secretstorage-2.3.1, sqlite3-2.6.0
[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] [pluralsight:course] Extracting URL: https://app.pluralsight.com/library/courses/dotnet-core-testing-code-xunit-dotnet-getting-started
[pluralsight:course] dotnet-core-testing-code-xunit-dotnet-getting-started: Downloading JSON metadata
[pluralsight:course] dotnet-core-testing-code-xunit-dotnet-getting-started: Downloading JSON metadata
ERROR: [pluralsight:course] dotnet-core-testing-code-xunit-dotnet-getting-started: dotnet-core-testing-code-xunit-dotnet-getting-started: Failed to parse JSON (caused by JSONDecodeError('Expecting value: line 1 column 1 (char 0)')); 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 "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 644, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/pluralsight.py", line 459, in _real_extract
    course = self._download_course(course_id, url, course_id)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/pluralsight.py", line 89, in _download_course
    return self._download_json(
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 1004, in download_content
    res = getattr(self, download_handle.__name__)(url_or_request, video_id, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 974, in download_handle
    return parse(self, content, video_id, transform_source=transform_source, fatal=fatal, errnote=errnote), urlh
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 964, in parse
    return getattr(ie, parser)(content, *args, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 951, in _parse_json
    self.__print_error('Failed to parse JSON' if errnote is None else errnote, fatal, video_id, ve)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 934, in __print_error
    raise ExtractorError(f'{video_id}: {errnote}', cause=err)

  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 948, in _parse_json
    return json.loads(
  File "/usr/lib/python3.8/json/__init__.py", line 370, in loads
    return cls(**kw).decode(s)
  File "/usr/local/bin/yt-dlp/yt_dlp/utils.py", line 599, in decode
    return super().decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
```