Skip to content

Commit

Permalink
Merge pull request #4903 from minrk/https-youtube
Browse files Browse the repository at this point in the history
use https for all embeds
  • Loading branch information
takluyver committed Jan 28, 2014
2 parents d015364 + c355538 commit 1fb6096
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 1fb6096

Please sign in to comment.