Repository: yt-dlp
Issue: [Newgrounds] Login support is broken / site requires 2fa
Labels: account-needed,site-bug,can-share-account

### 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 yt-dlp is broken on a **supported** site
- [x] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [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)
- [x] 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

_No response_

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

I tried downloading video from **Newgrounds** and it's not working. I tried both giving `username`, `password` and `cookies`.

When you give `username` and `password`, you are required to also provide a **2FA** code, which if you get from an email, I don't think it's possible to add that as it don't prompt for a **2FA code** after attempting to log in.

When I tried giving `cookies`, it also doesn't work with the error.
```
ERROR: [Newgrounds] 961757: This video is only available for registered users. Use --cookies, --cookies-from-browser, --username and --password, --netrc-cmd, or --netrc (newgrounds) to provide account credentials. See  https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp  for how to manually pass cookies
```

And this is the cookie file _with values removed_
```
# Netscape HTTP Cookie File

.newgrounds.com	TRUE	/	TRUE	1738389207	_ngViCo-SupporterPromo	----
.newgrounds.com	TRUE	/	TRUE	0	ng_user0	----
.newgrounds.com	TRUE	/	TRUE	1769317311	passport-auth	----
```
I notice that it changes the `ng_user0` and `_ngViCo-SupporterPromo` values after running the command. Don't know if that is to be expected or not.

### Provide verbose output that clearly demonstrates the problem

- [x] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] 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
❯ ./yt-dlp.exe "https://newgrounds.com/portal/view/752271" --cookies "./cookie.txt" -vU
[debug] Command-line config: ['https://newgrounds.com/portal/view/752271', '--cookies', './cookie.txt', '-vU']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8 
[debug] yt-dlp version stable@2025.01.15 from yt-dlp/yt-dlp [c8541f8b1] (win_exe) 
[debug] Python 3.10.11 (CPython AMD64 64bit) - Windows-10-10.0.22621-SP0 (OpenSSL 1.1.1t  7 Feb 2023) 
[debug] exe versions: none 
[debug] Optional libraries: Cryptodome-3.21.0, brotli-1.1.0, certifi-2024.12.14, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.40.1, urllib3-2.3.0, websockets-14.1 
[debug] Proxy map: {} 
[debug] Request Handlers: urllib, requests, websockets, curl_cffi 
[debug] Loaded 1837 extractors 
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest 
Latest version: stable@2025.01.15 from yt-dlp/yt-dlp 
yt-dlp is up to date (stable@2025.01.15 from yt-dlp/yt-dlp) 
[Newgrounds] Extracting URL: https://newgrounds.com/portal/view/752271 
[Newgrounds] 752271: Downloading webpage 
ERROR: [Newgrounds] 752271: This video is only available for registered users. Use --cookies, --cookies-from-browser, --username and --password, --netrc-cmd, or --netrc (newgrounds) to provide account credentials. See  https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp  for how to manually pass cookies 
  File "yt_dlp\extractor\common.py", line 742, in extract 
  File "yt_dlp\extractor\newgrounds.py", line 150, in _real_extract 
  File "yt_dlp\extractor\common.py", line 1258, in raise_login_required
```