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

ustream download has ceased to work #6943

Closed
davidrabinowitz opened this issue Sep 24, 2015 · 6 comments
Closed

ustream download has ceased to work #6943

davidrabinowitz opened this issue Sep 24, 2015 · 6 comments
Labels

Comments

@davidrabinowitz
Copy link

@davidrabinowitz davidrabinowitz commented Sep 24, 2015

It appears ustearm has changed something, as now U get the following error:

$ youtube-dl http://www.ustream.tv/recorded/73439996 --verbose
[debug] System config: []
[debug] User config: [u'--prefer-ffmpeg']
[debug] Command-line args: [u'http://www.ustream.tv/recorded/73439996', u'--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.09.22
[debug] Python version 2.7.8 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: avconv 2.8, ffmpeg 2.8, ffprobe 2.8
[debug] Proxy map: {}
[ustream] 73439996: Downloading JSON metadata
ERROR: This call is deprecated. Contact customer support for more details.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 660, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 287, in extract
return self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/ustream.py", line 63, in _real_extract
raise ExtractorError(params['error']['message'], expected=True)
ExtractorError: This call is deprecated. Contact customer support for more details.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Sep 24, 2015

youtube-dl uses an old API to fetch video info, and now seems ustream has disabled the old API. The new API requires AMF (Action Message Format) support, which is quite complicated.

@yan12125 yan12125 added the broken-IE label Sep 24, 2015
@davidrabinowitz
Copy link
Author

@davidrabinowitz davidrabinowitz commented Sep 29, 2015

In this case I would take ustream off the supported sites list, and perhaps notify the user immediately

@CeruleanSky
Copy link
Contributor

@CeruleanSky CeruleanSky commented Oct 1, 2015

Haven't tested on live streams, or tested if their are multiple video urls, but for the info for davidrabinowitz's video now at

https://api.ustream.tv/videos/73439996.json

So change it in ustream.py to:
params = self._download_json(
'https://api.ustream.tv/videos/' + video_id + '.json')

and this to:
video_url = params['media_urls']['flv']

Should download in theory, haven't actually tried the above.

http://tcdn.ustream.tv/video/73439996?preset_id=1&e=1443673703&h=5e54fdfb89ffec05d0e06e6fc8aeeb00

Which my browser says is a bit over a gigabyte.

Can grab the title also from the json. Somebody else will have to figure out channels.

@davidrabinowitz
Copy link
Author

@davidrabinowitz davidrabinowitz commented Oct 1, 2015

Thanks @CeruleanSky , I've created a fix based on your comment

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Oct 5, 2015

This issue has been fixed and will be available in the next version. Thanks for the report.

@dstftw dstftw closed this Oct 5, 2015
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.