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

Frequent warning or error message : unable to extract html5 player and Unable to extract JS player URL #2858

Closed
krantisit1321 opened this issue May 6, 2014 · 7 comments

Comments

@krantisit1321
Copy link

@krantisit1321 krantisit1321 commented May 6, 2014

My usecase is to download a stream which is playable on a device and browser combo where User agent string represents . Is it the right way to do that ?

Let me know if I am missing any thing here.Here is log for my command

kranti(~) $ sudo /usr/local/bin/youtube-dl --user-agent 'Mozilla/5.0 (Linux; U; Android 2.2; en-us; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1' --verbose http://www.youtube.com/watch?v=bCloJm9gptM
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--user-agent', 'Mozilla/5.0 (Linux; U; Android 2.2; en-us; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1', '--verbose', 'http://www.youtube.com/watch?v=bCloJm9gptM']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.05.05
[debug] Python version 2.7.5 - Darwin-13.1.0-x86_64-i386-64bit
[debug] Proxy map: {}
[youtube] Setting language
[youtube] bCloJm9gptM: Downloading webpage
[youtube] bCloJm9gptM: Downloading video info webpage
[youtube] bCloJm9gptM: Extracting video information
WARNING: unable to extract uploader nickname
WARNING: unable to extract html5 player; please report this issue on http://yt-dl.org/bug
[youtube] encrypted signature length 88 (45.42), itag 22, html5 player None
ERROR: Unable to extract JS player URL; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/youtube_dl/extractor/youtube.py", line 1196, in _real_extract
raise ValueError('Could not find vevo ID')
ValueError: Could not find vevo ID
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/youtube_dl/YoutubeDL.py", line 516, in extract_info
ie_result = ie.extract(url)
File "/Library/Python/2.7/site-packages/youtube_dl/extractor/common.py", line 161, in extract
return self._real_extract(url)
File "/Library/Python/2.7/site-packages/youtube_dl/extractor/youtube.py", line 1274, in _real_extract
video_webpage, u'JS player URL')
File "/Library/Python/2.7/site-packages/youtube_dl/extractor/common.py", line 376, in _search_regex
raise RegexNotFoundError(u'Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract JS player URL; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.

Thanks for the help

@krantisit1321
Copy link
Author

@krantisit1321 krantisit1321 commented May 6, 2014

I am using youtube-dl on Mac Os X (maverics) .
kranti() $ sudo /usr/local/bin/youtube-dl --version
Password:
2014.05.05
kranti(
) $ uname -a
Darwin strikesmall-lm 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented May 6, 2014

You are probably getting the mobile version of the site, we haven't tested with it (we only use the standard User-Agent).

@phihag
Copy link
Contributor

@phihag phihag commented May 7, 2014

First of all, don't run youtube-dl as root, i.e. do not use sudo, unless you are updating it. Secondly, you can fix your problem by simply removing the --user-agent option, which should not be needed for anything but debugging in the first place.

@krantisit1321
Copy link
Author

@krantisit1321 krantisit1321 commented May 8, 2014

Is it possible to get stream name using youtube-dl , which is getting used when we play youtube video on a android device/Chrome browser?
I thought --user-agent is to specify user agent , So that youtube-dl simulates corresponding env , and gives the streams corresponding to that environment

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented May 8, 2014

--user-agent changes the user agent, but we only test with one, supporting others will complicate the code. The urls are the same in Chrome and Firefox, so that' not a problem, I have no idea about the formats used in Android.

@rhnvrm
Copy link

@rhnvrm rhnvrm commented Sep 17, 2016

@krantisit1321 you won't get an error if you simply use youtube-dl http://www.youtube.com/watch?v=bCloJm9gptM without the user-agent. Also, regarding the use case you mentioned, you can choose the format using the -f <format> and to list all the available formats you can use youtube-dl -F http://www.youtube.com/watch?v=bCloJm9gptM
Hopefully that solves your issue.

I recommend closing this issue.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Sep 17, 2016

Served formats with an Android User-Agent are the same as those with a desktop browser User-Agent. There's no need to support both, so closing.

@yan12125 yan12125 closed this Sep 17, 2016
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
5 participants
You can’t perform that action at this time.