Repository: yt-dlp
Issue: progress_hooks doesn't work in nicovideo.jp
Labels: site-bug,triage

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting that a **supported** site is broken
- [X] I've verified that I'm running yt-dlp version **2023.03.04** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [ ] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

Taiwan

### Provide a description that is worded well enough to be understood

I was downloading videos from niconico in Python 3.8.2, and my hook function didn't work. Progress bar in stdout works fine, and video was downloaded.

**Tested link:**
[https://www.nicovideo.jp/watch/sm23285828](https://www.nicovideo.jp/watch/sm23285828)
[https://www.nicovideo.jp/watch/sm42127145](https://www.nicovideo.jp/watch/sm42127145)
[https://www.nicovideo.jp/watch/sm29029350](https://www.nicovideo.jp/watch/sm29029350)

**full test code:**
(also test youtube video and hook function works fine)
```
import yt_dlp
from yt_dlp import YoutubeDL

def hook(d):
    print(d)

opt = {
    "outtmpl": "./download/%(title)s.%(ext)s",
    "format": "bv+ba/bv*+ba*",
    "nocheckcertificate": True,
    "noplaylist": False,
    "retries": 5,
    "ffmpeg_location": "./data/ffmpeg.exe",
    "progress_hooks": [hook],
    "verbose": True
}

url = "https://www.youtube.com/watch?v=D6DVTLvOupE"
url = "https://www.nicovideo.jp/watch/sm23285828"
url = "https://www.nicovideo.jp/watch/sm42127145"
url = "https://www.nicovideo.jp/watch/sm29029350"


with YoutubeDL(opt) as ytdl:
    ytdl.extract_info(url, download = True)
```

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [X] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Encodings: locale cp950, fs utf-8, pref cp950, out utf-8, error utf-8, screen utf-8 
[debug] yt-dlp version stable@2023.03.04 [392389b7d] (pip) API 
[debug] params: {'outtmpl': './download/%(title)s.%(ext)s', 'format': 'bv+ba/bv*+ba*', 'nocheckcertificate': True, 'noplaylist': False, 'retries': 5, 'ffmpeg_location': './data/ffmpeg.exe', 'progress_hooks': [<function hook at 0x0000028741BEB940>], 'verbose': True, 'compat_opts': set()}
[debug] Python 3.8.2 (CPython AMD64 64bit) - Windows-10-10.0.19041-SP0 (OpenSSL 1.1.1d  10 Sep 2019)
[debug] exe versions: ffmpeg 2022-09-05-git-2ed5925e26-essentials_build-www.gyan.dev (setts) 
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.2 
[debug] Proxy map: {}
[debug] Loaded 1786 extractors 
[niconico] Extracting URL: https://www.nicovideo.jp/watch/sm29029350 
[niconico] sm29029350: 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 
[info] sm29029350: Downloading 1 format(s): h264_360p-aac_64kbps-http 
[debug] Invoking niconico_dmc downloader on "niconico_dmc:sm29029350/archive_h264_360p/archive_aac_64kbps" 
[niconico_dmc] Downloading from DMC
[niconico] sm29029350: Downloading JSON metadata for h264_360p-aac_64kbps-http
[niconico] sm29029350: Acquiring permission for downloading video 
[niconico_dmc] Heartbeat with 40 second interval ... 
[debug] File locking is not supported. Proceeding without locking 
[download] Destination: download\【ネタバレ注意】対アリで手描きMAD【ボカロPVトレスパロ】.mp4 
[download] 100% of   18.96MiB in 00:02:57 at 109.49KiB/s
```