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

Musik-Videos doesnt work #18707

Closed
Misterodd opened this issue Dec 31, 2018 · 11 comments
Closed

Musik-Videos doesnt work #18707

Misterodd opened this issue Dec 31, 2018 · 11 comments

Comments

@Misterodd
Copy link

@Misterodd Misterodd commented Dec 31, 2018

Hey guys,

I found this tool to download youtube videos, and for the most its working, but when I want to download a Musik-Video this happens:
EDIT:
I use Debian/Ubuntu with LinuxKernel 4.20
just installed today via "apt"

youtube-dl -F --no-check-certificate --verbose https://www.youtube.com/watch?v=r0J-vNlgWic
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-F', '--no-check-certificate', '--verbose', 'https://www.youtube.com/watch?v=r0J-vNlgWic']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.03.14
[debug] Python version 3.6.7 (CPython) - Linux-4.20.0-042000-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.4-0ubuntu0.18.04.1, ffprobe 3.4.4-0ubuntu0.18.04.1, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] r0J-vNlgWic: Downloading webpage
[youtube] r0J-vNlgWic: Downloading video info webpage
[youtube] r0J-vNlgWic: Extracting video information
WARNING: unable to extract html5 player; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[youtube] {18} signature length 40.41, html5 player None
[youtube] r0J-vNlgWic: Downloading player https://www.youtube.com/yts/jsbin/player_ias-vflSzU_20/en_US/base.js
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1191, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1102, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1163, in _parse_sig_js
jscode, 'Initial JS player signature function name', group='sig')
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 796, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by RegexNotFoundError('Unable to extract \x1b[0;34mInitial JS player signature function name\x1b[0m; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1191, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1102, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1163, in _parse_sig_js
jscode, 'Initial JS player signature function name', group='sig')
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 796, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1191, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1102, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1163, in _parse_sig_js
jscode, 'Initial JS player signature function name', group='sig')
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 796, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/youtube_dl/YoutubeDL.py", line 785, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 440, in extract
ie_result = self._real_extract(url)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1899, in _real_extract
encrypted_sig, video_id, player_url, age_gate)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1201, in _decrypt_signature
'Signature extraction failed: ' + tb, cause=e)
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1191, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1102, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/youtube.py", line 1163, in _parse_sig_js
jscode, 'Initial JS player signature function name', group='sig')
File "/usr/lib/python3/dist-packages/youtube_dl/extractor/common.py", line 796, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by RegexNotFoundError('Unable to extract \x1b[0;34mInitial JS player signature function name\x1b[0m; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

but others works fine:
youtube-dl -f 299 --no-check-certificate https://www.youtube.com/watch?v=Db-tuTCsoWU&t=15s
[youtube] Db-tuTCsoWU: Downloading webpage
[youtube] Db-tuTCsoWU: Downloading video info webpage
[youtube] Db-tuTCsoWU: Extracting video information
WARNING: Unknown codec av01.0.05M.08
WARNING: Unknown codec av01.0.05M.08
WARNING: Unknown codec av01.0.05M.08
WARNING: Unknown codec av01.0.05M.08
[download] Destination: Game Theory - Fortnite is Stealing...AGAIN!! (The Fortnite Dance Controversy)-Db-tuTCsoWU.mp4
[download] 100% of 298.23MiB in 03:23

Why does youtube-dl want to download "js player vflSzU_20" but not when its working. how can I forbid the use of the js player, its seems to create this issue.
Thank you for your help.

@eduardog3000
Copy link

@eduardog3000 eduardog3000 commented Dec 31, 2018

Update youtube-dl with youtube-dl -U (or if you used a package manager use its update function).

@Misterodd
Copy link
Author

@Misterodd Misterodd commented Dec 31, 2018

Non relevant information were posted here.... viewable at the "edited" tab the 3.

@Misterodd
Copy link
Author

@Misterodd Misterodd commented Dec 31, 2018

``

Update youtube-dl with youtube-dl -U (or if you used a package manager use its update function).

I have just installed it, so its up-to-date, checked it before I posted it.

@eduardog3000
Copy link

@eduardog3000 eduardog3000 commented Dec 31, 2018

Your output says [debug] youtube-dl version 2018.03.14, so it's not up to date. The current version is 2018.12.31. Try running youtube-dl -U.

@Misterodd
Copy link
Author

@Misterodd Misterodd commented Dec 31, 2018

Your output says [debug] youtube-dl version 2018.03.14, so it's not up to date. The current version is 2018.12.31. Try running youtube-dl -U.

I'm sorry it was because I got this.

youtube-dl: error: youtube-dl's self-update mechanism is disabled on Debian.
Please update youtube-dl using apt(8).
See https://packages.debian.org/sid/youtube-dl for the latest packaged version.

Its an old version in the Ubuntu repro

@eduardog3000
Copy link

@eduardog3000 eduardog3000 commented Dec 31, 2018

You might have to update apt.

sudo apt update

Then run sudo apt install youtube-dl again.

@eduardog3000
Copy link

@eduardog3000 eduardog3000 commented Dec 31, 2018

If that doesn't work uninstall from apt and try installing with pip.

Edit: Yeah, it looks like Ubuntu's repo might have an old version. You should probably just use pip.

Still do sudo apt update if you haven't, then:

sudo apt remove youtube-dl
sudo apt install python-pip
pip install youtube-dl
@Misterodd
Copy link
Author

@Misterodd Misterodd commented Dec 31, 2018

updated apt, but the version didnt changed.
Done with pip:

Successfully installed youtube-dl-2018.12.31

Yeah now I'm to stupid to use youtube-dl. Ubuntu wants that I install it first via snap or apt.
How can I use pip installed applications?

Thank you for helping me.

@eduardog3000
Copy link

@eduardog3000 eduardog3000 commented Dec 31, 2018

It's located in ~/.local/lib/python2.7/site-packages, so either run it with ~/.local/lib/python2.7/site-packages/youtube-dl or add ~/.local/lib/python2.7/site-packages to your path.

Or just install it directly:

sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
@Misterodd
Copy link
Author

@Misterodd Misterodd commented Dec 31, 2018

Ok downloaded it:
Thank you very much! Now it works!

@Misterodd
Copy link
Author

@Misterodd Misterodd commented Dec 31, 2018

So in short:
Ever use the original data of youtube-dl.

sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

@Misterodd Misterodd closed this Dec 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.