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

Unable to extract Initial JS player n function name #1

Closed
Kibahor opened this issue Aug 16, 2022 · 2 comments
Closed

Unable to extract Initial JS player n function name #1

Kibahor opened this issue Aug 16, 2022 · 2 comments
Labels
good first issue Good for newcomers

Comments

@Kibahor
Copy link

Kibahor commented Aug 16, 2022

Hi,
I wanted to use your project but it appear that the same error happened and two different pc and os.
Download one song work but not with a playlist ...
I try essential and base release and also build on windows and linux and the result is the same.

.\ytmp3-dl.exe -l 6 -d './dl' 'https://www.youtube.com/playlist?list=PLWA7yojbv0ofzDLyswGSABK0XXXXX' WARNING: [youtube:tab] YouTube said: INFO - Unavailable videos are hidden WARNING: [youtube:tab] YouTube said: INFO - Unavailable videos will be hidden during playback WARNING: [youtube] nsig extraction failed: You may experience throttling for some formats n = YIjUZKks2K2Ff4fw8 ; player = https://www.youtube.com/s/player/c81bbb4a/player_ias.vflset/en_US/base.js oaV_3n3uIjA: Traceback (most recent call last): File "yt_dlp\extractor\youtube.py", line 1881, in _decrypt_nsig File "yt_dlp\extractor\youtube.py", line 1902, in _extract_n_function File "yt_dlp\extractor\youtube.py", line 1890, in _extract_n_function_name File "yt_dlp\extractor\common.py", line 1171, in _search_regex yt_dlp.utils.RegexNotFoundError: Unable to extract Initial JS player n function name; please report this issue on https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type yt-dlp -U to update. Be sure to call yt-dlp with the --verbose flag and include its complete output. (caused by RegexNotFoundError('Unable to extract \x1b[0;94mInitial JS player n function name\x1b[0m; please report this issue on https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type yt-dlp -U to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.')); please report this issue on https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type yt-dlp -U to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.

@poseidon-code
Copy link
Owner

Currently both the shipped binaries does not have the playlist download support.
To download playlists one need to use the program as a script (Check Script Usage)

Also needs to change the yt-dlp options inside the ytmp3-dl.py file:

  1. After setting up script like usage, proceed.
  2. open ytmp3-dl.py
  3. go to line:204
  4. change from "noplaylist": True to "noplaylist": False
  5. using this setting, ytmp3-dl will run not run parallel (i.e. -l will not work for musics inside the playlist).
  6. run like: python ytmp3-dl.py -d "./dl" <playlist url>

PS: playlist download & sectioned music download will be implemented soon

@poseidon-code poseidon-code added the good first issue Good for newcomers label Aug 20, 2022
@poseidon-code poseidon-code pinned this issue Aug 20, 2022
@Kibahor
Copy link
Author

Kibahor commented Aug 20, 2022

Ok thanks,
Instead of use this project, i had directly used yt-dlp.
Thanks for the fast reply, I will know what to do next time 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants