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

use https for all embeds #4903

Merged
merged 1 commit into from
Jan 28, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions IPython/lib/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def _repr_html_(self):
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")
Expand All @@ -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):
Expand All @@ -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):
Expand All @@ -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):
Expand Down