Closed JellyBrick closed 7 months ago
I encountered the same problem. This is because the getflv endpoint is no longer available (http://flapi.nicovideo.jp/api/getflv/
).
Related official announcement: https://blog.nicovideo.jp/niconews/182541.html
As there is no alternative API, it may be necessary to adjust the acquisition of video data with reference to implementations such as yt-dlp.
console
branch
custom
-ef07585
to reproduce
Play the niconico video.
video URL
https://www.nicovideo.jp/watch/sm41678600
Additional comment
I also found a problem with the regular expression. This regular expression that detects Niconico's video is invalid.
Current regex:
^(?:http://|https://|)(?:www\\.|)nicovideo\\.jp/watch/(sm[0-9]+)(?:\\?.*|)$
The current regular expression only detects the
http(s)?://(www.)?nico.../watch/sm + number
form.But, niconico's video-id can be
nm + number
,so + number
, etc.example: https://www.nicovideo.jp/watch/nm7806214
check this: https://www.wikidata.org/wiki/Property:P11176 https://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q14146404849 (Japanese) https://dic.nicovideo.jp/a/id (Japanese)
Related issues
https://github.com/yt-dlp/yt-dlp/issues/171