From 7b86b8777f5f7c3b6ebf642f9703588318d6b0a5 Mon Sep 17 00:00:00 2001 From: flynnmartin Date: Thu, 18 Sep 2014 08:25:00 -0700 Subject: [PATCH] Update to timeline.js to fix YouTube embeds When I tried a YouTube embed using the stock code, I couldn't get it to go by following the documentation for it. Changing the API calls to https and one URL seemed to fix the issue. --- build/js/timeline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/js/timeline.js b/build/js/timeline.js index f89638b..dbb97e2 100644 --- a/build/js/timeline.js +++ b/build/js/timeline.js @@ -4139,13 +4139,13 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') { youtube: { get: function(m) { - var the_url = "//gdata.youtube.com/feeds/api/videos/" + m.id + "?v=2&alt=jsonc&callback=?"; + var the_url = "https://gdata.youtube.com/feeds/api/videos?q=" + m.id + "?&alt=jsonc&callback=?"; VMM.master_config.youtube.que.push(m); if (!VMM.master_config.youtube.active) { if (!VMM.master_config.youtube.api_loaded) { - LoadLib.js('//www.youtube.com/player_api', function() { + LoadLib.js('https://www.youtube.com/player_api', function() { trace("YouTube API Library Loaded"); }); }