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

nicovideo.jp download error #5469

Closed
9 of 10 tasks
pkquell opened this issue Nov 7, 2022 · 3 comments
Closed
9 of 10 tasks

nicovideo.jp download error #5469

pkquell opened this issue Nov 7, 2022 · 3 comments
Labels
site-bug Issue with a specific website

Comments

@pkquell
Copy link

pkquell commented Nov 7, 2022

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

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

Checklist

Region

South Korea

Provide a description that is worded well enough to be understood

Can't download nicovideo.jp videos.

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-vU', 'https://www.nicovideo.jp/watch/sm29315733']
[debug] Encodings: locale cp949, fs utf-8, pref cp949, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.10.04 [4e0511f] (win32_exe)
[debug] Python 3.8.10 (CPython 64bit) - Windows-10-10.0.19044-SP0
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.09.24, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Loaded 1690 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.10.04, Current version: 2022.10.04
yt-dlp is up to date (2022.10.04)
[debug] [niconico] Extracting URL: https://www.nicovideo.jp/watch/sm29315733
[niconico] sm29315733: Downloading webpage
ERROR: sm29315733: An extractor error has occurred. (caused by KeyError('media')); 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 672, in extract
  File "yt_dlp\extractor\niconico.py", line 421, in _real_extract
KeyError: 'media'
@pkquell pkquell added site-bug Issue with a specific website triage Untriaged issue labels Nov 7, 2022
@Lesmiscore Lesmiscore removed the triage Untriaged issue label Nov 7, 2022
@Lesmiscore
Copy link
Contributor

Could you please upload the files generated by adding --write-pages? While this issue is valid, I can't reproduce it from Japan

$ yt-dlp -vs https://www.nicovideo.jp/watch/sm29315733 
[debug] Command-line config: ['-vs', 'https://www.nicovideo.jp/watch/sm29315733']
[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.10.04 [4e0511f] (pip) API
[debug] Python 3.9.15 (CPython 64bit) - Linux-5.15.0-52-generic-x86_64-with-glibc2.35 (glibc 2.35)
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg n4.4.1-3-ge16ff82624-20211127 (setts), ffprobe n4.4.1-3-ge16ff82624-20211127, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Loaded 1690 extractors
[debug] [niconico] Extracting URL: https://www.nicovideo.jp/watch/sm29315733
[niconico] sm29315733: Downloading webpage
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] sm29315733: Downloading 1 format(s): h264_720p-aac_128kbps-http

@Lesmiscore Lesmiscore added the cant-reproduce The issue cannot be reliably reproduced label Nov 7, 2022
@pkquell
Copy link
Author

pkquell commented Nov 7, 2022

@pkquell
Copy link
Author

pkquell commented Nov 7, 2022

I found the cause of this error.

Sometimes South Korean ISPs inject js pages into unencrypted HTTP requests for detecting multiple PC connections and requesting additional payments.

This is not a yt-dlp problem, but it can be easily fixed if replacing the http request to https request does not cause any problems.

@Lesmiscore Lesmiscore removed the cant-reproduce The issue cannot be reliably reproduced label Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-bug Issue with a specific website
Projects
None yet
Development

No branches or pull requests

2 participants