Mercurial > public > sg101
diff oembed/core.py @ 907:344f7914d421
Add scheme=https to oembed request.
YouTube added this so you could get HTML that used https to embed the video.
It seems that Vimeo also supports it.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 15 Mar 2015 21:48:33 -0500 |
parents | 89b240fe9297 |
children | 2181da65c98b |
line wrap: on
line diff
--- a/oembed/core.py Sun Mar 08 11:06:07 2015 -0500 +++ b/oembed/core.py Sun Mar 15 21:48:33 2015 -0500 @@ -52,6 +52,7 @@ if __name__ == "__main__": try: print get_oembed("http://www.youtube.com/oembed", - "http://www.youtube.com/watch?v=7_IMzJldOf4") + "http://www.youtube.com/watch?v=7_IMzJldOf4", + scheme='https') except urllib2.HTTPError, e: print e