Commit ad652abb by Carlos Andrés Rocha

Retrieving video information from YouTube using https instead of http.

parent f65f14e6
...@@ -44,7 +44,7 @@ class @Video ...@@ -44,7 +44,7 @@ class @Video
fetchMetadata: (url) -> fetchMetadata: (url) ->
@metadata = {} @metadata = {}
$.each @videos, (speed, url) => $.each @videos, (speed, url) =>
$.get "http://gdata.youtube.com/feeds/api/videos/#{url}?v=2&alt=jsonc", ((data) => @metadata[data.data.id] = data.data) , 'jsonp' $.get "https://gdata.youtube.com/feeds/api/videos/#{url}?v=2&alt=jsonc", ((data) => @metadata[data.data.id] = data.data) , 'jsonp'
getDuration: -> getDuration: ->
@metadata[@youtubeId()].duration @metadata[@youtubeId()].duration
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment