From c355538c89cf64d2e47a2665583a3751e3970fb0 2014-01-28 19:04:34 From: MinRK Date: 2014-01-28 19:04:34 Subject: [PATCH] use https for all embeds YouTube, Vimeo, Scribd --- diff --git a/IPython/lib/display.py b/IPython/lib/display.py index 9d3c949..77be24e 100644 --- a/IPython/lib/display.py +++ b/IPython/lib/display.py @@ -199,7 +199,7 @@ class IFrame(object): class YouTubeVideo(IFrame): """Class for embedding a YouTube Video in an IPython session, based on its video id. - e.g. to embed the video from http://www.youtube.com/watch?v=foo , you would + e.g. to embed the video from https://www.youtube.com/watch?v=foo , you would do:: vid = YouTubeVideo("foo") @@ -220,7 +220,7 @@ class YouTubeVideo(IFrame): """ def __init__(self, id, width=400, height=300, **kwargs): - src = "http://www.youtube.com/embed/{0}".format(id) + src = "https://www.youtube.com/embed/{0}".format(id) super(YouTubeVideo, self).__init__(src, width, height, **kwargs) class VimeoVideo(IFrame): @@ -229,7 +229,7 @@ class VimeoVideo(IFrame): """ def __init__(self, id, width=400, height=300, **kwargs): - src="http://player.vimeo.com/video/{0}".format(id) + src="https://player.vimeo.com/video/{0}".format(id) super(VimeoVideo, self).__init__(src, width, height, **kwargs) class ScribdDocument(IFrame): @@ -245,7 +245,7 @@ class ScribdDocument(IFrame): """ def __init__(self, id, width=400, height=300, **kwargs): - src="http://www.scribd.com/embeds/{0}/content".format(id) + src="https://www.scribd.com/embeds/{0}/content".format(id) super(ScribdDocument, self).__init__(src, width, height, **kwargs) class FileLink(object):