Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPO / zapp.nl - Failed to parse JSON #8547

Open
11 tasks done
6461 opened this issue Nov 8, 2023 · 3 comments
Open
11 tasks done

NPO / zapp.nl - Failed to parse JSON #8547

6461 opened this issue Nov 8, 2023 · 3 comments
Labels
DRM The referred content is DRM protected site-bug Issue with a specific website

Comments

@6461
Copy link

6461 commented Nov 8, 2023

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

The Netherlands

Provide a description that is worded well enough to be understood

Downloading a program does not work. I'm using Proton VPN (free) and can access programs with Chrome browser.

Failed to parse JSON (caused by JSONDecodeError("Expecting value in '': line 1 column 1 (char 0)"))

Test URL: https://www.zapp.nl/programmas/checkpoint/gemist/VPWON_1268616

I have tried the release version 2023.10.13 and nightly@2023.11.07.231015 [10025b7]. Same issue with both of them.

Provide verbose output that clearly demonstrates the problem

  • 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
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-vU', 'https://www.zapp.nl/programmas/checkpoint/gemist/VPWON_1268616']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2023.11.07.231015 [10025b715] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 6.0-full_build-www.gyan.dev (setts), ffprobe 6.0-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.19.0, brotli-1.1.0, certifi-2023.07.22, mutagen-1.47.0, requests-2.31.0, sqlite3-3.35.5, urllib3-2.0.7, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests
[debug] Loaded 1890 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Available version: nightly@2023.11.07.231015, Current version: nightly@2023.11.07.231015
Current Build Hash: 4df736bdf04f79de60c985a9e9f007299caac14cf6656d6f058643ac6a16a321
yt-dlp is up to date (nightly@2023.11.07.231015)
[npo] Extracting URL: https://www.zapp.nl/programmas/checkpoint/gemist/VPWON_1268616
[npo] VPWON_1268616: Downloading token
[npo] VPWON_1268616: Downloading player JSON
ERROR: [npo] VPWON_1268616: VPWON_1268616: Failed to parse JSON (caused by JSONDecodeError("Expecting value in '': 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 "yt_dlp\extractor\common.py", line 715, in extract
  File "yt_dlp\extractor\npo.py", line 222, in _real_extract
  File "yt_dlp\extractor\common.py", line 1069, in download_content
  File "yt_dlp\extractor\common.py", line 1039, in download_handle
  File "yt_dlp\extractor\common.py", line 1029, in parse
  File "yt_dlp\extractor\common.py", line 1016, in _parse_json
  File "yt_dlp\extractor\common.py", line 999, in __print_error

  File "yt_dlp\utils\_utils.py", line 555, in decode
  File "json\decoder.py", line 337, in decode
  File "json\decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "yt_dlp\extractor\common.py", line 1013, in _parse_json
  File "json\__init__.py", line 370, in loads
  File "yt_dlp\utils\_utils.py", line 563, in decode
json.decoder.JSONDecodeError: Expecting value in '': line 1 column 1 (char 0)
@6461 6461 added site-bug Issue with a specific website triage Untriaged issue labels Nov 8, 2023
@bashonly
Copy link
Member

bashonly commented Nov 8, 2023

Looks like the site's API has changed; the token endpoint URL now redirects to npostart.nl/start and the player API request gets redirected to the requested content's webpage

@bashonly bashonly removed the triage Untriaged issue label Nov 8, 2023
@benbenik
Copy link

benbenik commented Jan 5, 2024

Ik can confirm that this issue is still present for npo.nl, e.g. for link: https://npo.nl/start/serie/bij-van-duin-op-de-achterbank/seizoen-1/herman-finkers_19/afspelen

@mesa57
Copy link

mesa57 commented Jan 20, 2024

Same here with other npostart links.

yt-dlp is up to date (stable@2023.12.30 from yt-dlp/yt-dlp)
[npo] Extracting URL: https://npo.nl/start/serie/close-up/seizoen-17/close-up-jdl-behind-the-wall
[npo] close-up-jdl-behind-the-wall: Downloading token
[npo] close-up-jdl-behind-the-wall: Downloading player JSON
ERROR: [npo] close-up-jdl-behind-the-wall: close-up-jdl-behind-the-wall: Failed to parse JSON (caused by JSONDecodeError("Expecting value in '': 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 "yt_dlp\extractor\common.py", line 718, in extract
  File "yt_dlp\extractor\npo.py", line 222, in _real_extract
  File "yt_dlp\extractor\common.py", line 1072, in download_content
  File "yt_dlp\extractor\common.py", line 1042, in download_handle
  File "yt_dlp\extractor\common.py", line 1032, in parse
  File "yt_dlp\extractor\common.py", line 1019, in _parse_json
  File "yt_dlp\extractor\common.py", line 1002, in __print_error

  File "yt_dlp\utils\_utils.py", line 553, in decode
  File "json\decoder.py", line 337, in decode
  File "json\decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "yt_dlp\extractor\common.py", line 1016, in _parse_json
  File "json\__init__.py", line 370, in loads
  File "yt_dlp\utils\_utils.py", line 561, in decode
json.decoder.JSONDecodeError: Expecting value in '': line 1 column 1 (char 0)

@rvsit rvsit mentioned this issue Feb 29, 2024
9 tasks
@bashonly bashonly added the DRM The referred content is DRM protected label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DRM The referred content is DRM protected site-bug Issue with a specific website
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants