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

TED Support #688

Closed
aurium opened this issue Feb 16, 2013 · 1 comment
Closed

TED Support #688

aurium opened this issue Feb 16, 2013 · 1 comment

Comments

@aurium
Copy link
Contributor

@aurium aurium commented Feb 16, 2013

May be nice to have TED Support for taks: http://www.ted.com/talks/dan_dennett_on_our_consciousness.html and play lists: http://www.ted.com/playlists/82/are_we_alone_in_the_universe.html

TED also provide subtitles and video meta-data.

How to download a video:

Visiting this talk page:
http://www.ted.com/talks/dan_dennett_on_our_consciousness.html

The download dialog gives me this URL to download the video in HD with subtitles:
http://video-subtitle.tedcdn.com/talk/podcast/2003/None/DanDennett_2003-480p-pt-br.mp4

I see in the page code this link inside a noscript area:
<a id="no-flash-video-download" href="http://download.ted.com/talks/DanDennett_2003.mp4">

This links looks like to be ever the same format:
"http://download.ted.com/talks/"+talkDetails.mediaSlug+".mp4"

...and talkDetails.mediaSlug is found here:
<script type="text/javascript">var talkDetails = {"id":125,...,"mediaSlug":"JeffHawkins_2003",...}</script>

the url http://download.ted.com/talks/DanDennett_2003.mp4 woks...

But the interesting is this:
wget http://download.ted.com/talks/DanDennett_2003-480p-pt-br.mp4
the same download URL, plus quality and lang parameters is redirected to the right file.
And Works!

Stop here! The wget line above works! ^^^

but... How to find the direct URL?

On this TED talk:
http://www.ted.com/talks/jeff_hawkins_on_how_brain_science_will_change_computing.html

We open the download dialog with ajax generated window from:
http://www.ted.com/download/links/slug/JeffHawkins_2003/type/talks/ext/mp4

The URL looks like to be ever
"http://www.ted.com/download/links/slug/"+talkDetails.mediaSlug+"/type/talks/ext/mp4"

This "ajax page" shows the download URL template:
url = 'http://download.ted.com/talks/JeffHawkins_2003{quality}{lang}.mp4?apikey=TEDDOWNLOAD'

Where {quality} may be "-light", "-480p", "" (empty means regular),
and {lang} may be "" or "-"+langCode, where langCode = "en", "it", "pt-br", ...

...and works too.

@phihag
Copy link
Contributor

@phihag phihag commented Feb 18, 2013

Fixed in 59d4c2f.

@phihag phihag closed this Feb 18, 2013
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.