yt-dlp: [FujiTVFODPlus7] Failed to parse JSON / FOD FujiTV
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
- I’m reporting that yt-dlp is broken on a supported site
- I’ve verified that I have updated yt-dlp to nightly or master (update instructions)
- I’ve checked that all provided URLs are playable in a browser with the same IP and same login details
- I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- I’ve searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
- I’ve read about sharing account credentials and I’m willing to share it if required
Region
Japan
Provide a description that is worded well enough to be understood
[FujiTVFODPlus7] 2752810042: 2752810042: 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 734, in extract File “yt_dlp\extractor\fujitv.py”, line 50, in _real_extract File “yt_dlp\extractor\common.py”, line 1133, in download_content File “yt_dlp\extractor\common.py”, line 1100, in download_handle File “yt_dlp\extractor\common.py”, line 1088, in parse File “yt_dlp\extractor\common.py”, line 1075, in _parse_json File “yt_dlp\extractor\common.py”, line 1058, in __print_error
File “yt_dlp\utils_utils.py”, line 552, 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 1072, in parse_json File "json_init.py", line 370, in loads File “yt_dlp\utils_utils.py”, line 560, in decode json.decoder.JSONDecodeError: Expecting value in ‘’: line 1 column 1 (char 0)
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': TruetoYoutubeDLparams instead - Copy the WHOLE output (starting with
[debug] Command-line config) and insert it below
Complete Verbose Output
D:\yt-dlp_win>yt-dlp https://fod.fujitv.co.jp/title/2752/2752810042/ -vU
[debug] Command-line config: ['https://fod.fujitv.co.jp/title/2752/2752810042/', '-vU']
[debug] Encodings: locale cp932, fs utf-8, pref cp932, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2024.05.27 from yt-dlp/yt-dlp [12b248ce6] (win32_dir)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.22631-SP0 (OpenSSL 1.1.1k 25 Mar 2021)
[debug] exe versions: ffmpeg 2022-04-07-git-607ecc27ed-full_build-www.gyan.dev (setts), ffprobe 2022-04-07-git-607ecc27ed-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.02.02, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.2, sqlite3-3.35.5, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1820 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2024.05.27 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2024.05.27 from yt-dlp/yt-dlp)
[FujiTVFODPlus7] Extracting URL: https://fod.fujitv.co.jp/title/2752/2752810042/
[FujiTVFODPlus7] 2752810042: Downloading webpage
[FujiTVFODPlus7] 2752810042: Downloading JSON metadata
[FujiTVFODPlus7] 2752810042: Downloading JSON metadata
ERROR: [FujiTVFODPlus7] 2752810042: 2752810042: 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 734, in extract
File "yt_dlp\extractor\fujitv.py", line 50, in _real_extract
File "yt_dlp\extractor\common.py", line 1133, in download_content
File "yt_dlp\extractor\common.py", line 1100, in download_handle
File "yt_dlp\extractor\common.py", line 1088, in parse
File "yt_dlp\extractor\common.py", line 1075, in _parse_json
File "yt_dlp\extractor\common.py", line 1058, in __print_error
File "yt_dlp\utils\_utils.py", line 552, 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 1072, in _parse_json
File "json\__init__.py", line 370, in loads
File "yt_dlp\utils\_utils.py", line 560, in decode
json.decoder.JSONDecodeError: Expecting value in '': line 1 column 1 (char 0)
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 24 (11 by maintainers)
Maybe they have changed it again. When I tested the API when my code failed the first time, what I intercepted was the
pc_html5API, it appeared thehttps://i.fod.fujitv.co.jp/abrjson_v2/sp_android/(EP ID)/{some hash}format.The extractor used to use the
sp_androidAPI, which I tested when I developed the internal tool for my fansub, returns 720P, then I changed that to usetv_androidwhich returns 1080P, which is no longer working due to the URL scheme change, causing this issue.*I just tested the
sp_androidAPI just now, and it doesn’t work for the latest episode, which is playable on the front end.Now the URL directly returns from
https://fod.fujitv.co.jp/apps/api/1/auth/contents/web?site_id=fodapp&ep_id=5d40810217&qa=auto&uuid=x5w61dsg-yjwb-4ito-2f35-o8n3ujrabu3d&starttime=0&is_pt=true&dt=&_=1727790729564Full request is attached as follows
Hope the latest information helps. Btw, any Japan VPN would circumvent this geo-lock.
sorry for Chinese comments tho, this is the internal tool that my fansub use to rip fujitv, which still works till this day, maybe it doesn’t download 1080P, but at least it works
update: translated everything to english
Also, they are not using https://fod-sp.fujitv.co.jp/apps/api anymore but https://i.fod.fujitv.co.jp/apps/api
This one: https://i.fod.fujitv.co.jp/abrjson_v2/tv_android/d602110001?t=5k%2F9lFQ6KZEQjH33c0wR9MPbmUqiLNPUsy43YpHDOWn4tCLBsZN9%2FeerrNhLitdrySA4X7WtPqQpgDifmMwCsuxg1wfs6MBcz9OpFm%2BGYx%2FMEZkFkd%2B0DyfArvBhbEeIg20LuTElHy%2FbnDkV6tPt76DtGq8MzTgNuufSGhITf64%3D
Which is Code Blue The Movie is using m3u8
The new episodes are still using m3u8