yt-dlp / yt-dlp

A feature-rich command-line audio/video downloader
https://discord.gg/H5MNcFW63r
The Unlicense
91.84k stars 7.15k forks source link

[AbemaTV] Unable to download JSON metadata: HTTP Error 404 | Abema.tv PPV/Live broken #7209

Open flingpossecule opened 1 year ago

flingpossecule commented 1 year ago

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

Checklist

Region

US/Japan VPN

Provide a description that is worded well enough to be understood

When attempting to download PPV or Live Show links I am getting errors depending on which I am trying to download. Most of the time I get unsupported URL, but I've seen others have success with Abema so I'm unsure if this is due to Abema updating something on their site. The error I got that facilitated a ticket relates to JSON metadata not being found on a PPV video.

Provide verbose output that clearly demonstrates the problem

Complete Verbose Output

[debug] Command-line config: ['-vU', '-u', 'PRIVATE', '-p', 'PRIVATE', 'https://abema.tv/channels/payperview-5/slots/DPfmTaTw4AbXGb']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d] (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: none
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1786 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.03.04, Current version: stable@2023.03.04
Current Build Hash: 5590c57bd0433ed239a2deaaf92e2ad6f37fe50f53664c821575cafe106a9421
yt-dlp is up to date (stable@2023.03.04)
[debug] Loading abematv.silviniukas@gmail.com from cache
[AbemaTV] Fetching media token
[debug] Loading abematv.silviniukas@gmail.com from cache
[debug] [AbemaTV] Skipping logging in
[AbemaTV] Extracting URL: https://abema.tv/channels/payperview-5/slots/DPfmTaTw4AbXGb
[AbemaTV] DPfmTaTw4AbXGb: Downloading webpage
[AbemaTV] DPfmTaTw4AbXGb: Checking playability
ERROR: [AbemaTV] DPfmTaTw4AbXGb: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); 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 694, in extract
  File "yt_dlp\extractor\abematv.py", line 442, in _real_extract
  File "yt_dlp\extractor\common.py", line 1048, in download_content
  File "yt_dlp\extractor\common.py", line 1012, in download_handle
  File "yt_dlp\extractor\common.py", line 882, in _download_webpage_handle
  File "yt_dlp\extractor\common.py", line 839, in _request_webpage

  File "yt_dlp\extractor\common.py", line 821, in _request_webpage
  File "yt_dlp\YoutubeDL.py", line 3742, in urlopen
  File "urllib\request.py", line 531, in open
  File "urllib\request.py", line 640, in http_response
  File "urllib\request.py", line 569, in error
  File "urllib\request.py", line 502, in _call_chain
  File "urllib\request.py", line 649, in http_error_default
urllib.error.HTTPError: HTTP Error 404: Not Found
bashonly commented 1 year ago

Have you tried with --no-cache-dir ?

flingpossecule commented 1 year ago

I tried with it, apologies if I've got it in the wrong spot? I'm a little new to this but this is what I got when I attempted

[debug] Command-line config: ['-vU', '--no-cache-dir', '-u', 'PRIVATE', '-p', 'PRIVATE', 'https://abema.tv/channels/payperview-5/slots/DPfmTaTw4AbXGb']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d] (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: none
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1786 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.03.04, Current version: stable@2023.03.04
Current Build Hash: 5590c57bd0433ed239a2deaaf92e2ad6f37fe50f53664c821575cafe106a9421
yt-dlp is up to date (stable@2023.03.04)
[AbemaTV] Authorizing
[AbemaTV] Logging in
[AbemaTV] Fetching media token
[AbemaTV] Extracting URL: https://abema.tv/channels/payperview-5/slots/DPfmTaTw4AbXGb
[AbemaTV] DPfmTaTw4AbXGb: Downloading webpage
[AbemaTV] DPfmTaTw4AbXGb: Checking playability
ERROR: [AbemaTV] DPfmTaTw4AbXGb: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); 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 694, in extract
  File "yt_dlp\extractor\abematv.py", line 442, in _real_extract
  File "yt_dlp\extractor\common.py", line 1048, in download_content
  File "yt_dlp\extractor\common.py", line 1012, in download_handle
  File "yt_dlp\extractor\common.py", line 882, in _download_webpage_handle
  File "yt_dlp\extractor\common.py", line 839, in _request_webpage

  File "yt_dlp\extractor\common.py", line 821, in _request_webpage
  File "yt_dlp\YoutubeDL.py", line 3742, in urlopen
  File "urllib\request.py", line 531, in open
  File "urllib\request.py", line 640, in http_response
  File "urllib\request.py", line 569, in error
  File "urllib\request.py", line 502, in _call_chain
  File "urllib\request.py", line 649, in http_error_default
urllib.error.HTTPError: HTTP Error 404: Not Found
bashonly commented 1 year ago

You ran the command correctly. It didn't help, though... it was just a troubleshooting suggestion

Adthrawn commented 1 year ago

I opened a duplicate on accident, #7244 . Let me know if there is any additional information I can provide. The video in question for my issue is available until 6.13, so I can provide any info until then