Repository: yt-dlp
Issue: Hanging after "Native nsig extraction failed: Trying with PhantomJS"
Labels: bug,help-wanted,cant-reproduce,site:youtube

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

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

### Checklist

- [X] I'm reporting a bug unrelated to a specific site
- [X] I've verified that I'm running yt-dlp version **2022.08.19** ([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/ytdl-org/youtube-dl#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 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)

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

Hi
last days i see Error and yt-dlp stop work.
Some Videos work... other stop with error and we Quit with strg+c
we cant found other Bug Report for "Native nsig extraction failed"


we use in script
yt-dlp -U
yt-dlp -civw --write-description --write-info-json --write-annotations --write-thumbnail --all-subs --sub-langs de,en,de-en*,live_chat --write-subs -o "%(channel)s/%(upload_date)s %(title)s/%(title)s.%(ext)s" --live-from-start --write-comments -v "https://www.youtube.com/watch?v=DebytkImQrw"



### 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] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
yt-dlp -vU
[debug] Command-line config: ['-vU']
[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.08.19 [48c88e0] (zip)
[debug] Python 3.7.3 (CPython 64bit) - Linux-4.19.0-21-amd64-x86_64-with-debian-10.12 (glibc 2.28)
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 4.1.9-0, ffprobe 4.1.9-0, phantomjs 1000, rtmpdump 2.4
[debug] Optional libraries: certifi-2018.08.24, pyxattr-0.6.1, sqlite3-2.6.0
[debug] Proxy map: {}
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.08.19, Current version: 2022.08.19
yt-dlp is up to date (2022.08.19)



yt-dlp -civw --write-description --write-info-json --write-annotations --write-thumbnail --all-subs --sub-langs de,en,de-en*,live_chat --write-subs -o "%(channel)s/%(upload_date)s %(title)s/%(title)s.%(ext)s" --live-from-start --write-comments -v "https://www.youtube.com/watch?v=DebytkImQrw"
[debug] Command-line config: ['-civw', '--write-description', '--write-info-json', '--write-annotations', '--write-thumbnail', '--all-subs', '--sub-langs', 'de,en,de-en*,live_chat', '--write-subs', '-o', '%(channel)s/%(upload_date)s %(title)s/%(title)s.%(ext)s', '--live-from-start', '--write-comments', '-v', 'https://www.youtube.com/watch?v=DebytkImQrw']
[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.08.19 [48c88e0] (zip)
[debug] Python 3.7.3 (CPython 64bit) - Linux-4.19.0-21-amd64-x86_64-with-debian-10.12 (glibc 2.28)
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 4.1.9-0, ffprobe 4.1.9-0, phantomjs 1000, rtmpdump 2.4
[debug] Optional libraries: certifi-2018.08.24, pyxattr-0.6.1, sqlite3-2.6.0
[debug] Proxy map: {}
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=DebytkImQrw
[youtube] DebytkImQrw: Downloading webpage
[youtube] DebytkImQrw: Downloading android player API JSON
[debug] Loading youtube-nsig.009f1d77 from cache
WARNING: [youtube] DebytkImQrw: Native nsig extraction failed: Trying with PhantomJS
         n = 5dwFHw8aFWQUQtffRq ; player = https://www.youtube.com/s/player/009f1d77/player_ias.vflset/en_US/base.js
[debug] [youtube] No terminating paren } in: {try{0<c[52]&&(7<c[88]&&((0,c[29])(c[85],c[92])...)(c[31]),c[41],c[88],c[75],(0,c[35])())}catch(d){}; 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
[youtube] DebytkImQrw: Executing signature code
[debug] [youtube] PhantomJS command line: phantomjs --ssl-protocol=any /tmp/tmps2s7uesa
^C
ERROR: Interrupted by user
```