From 4b05b076be94cc821c8574550718eb963d87a3cb Mon Sep 17 00:00:00 2001 From: Jordan Reiter Date: Mon, 14 Jul 2014 15:44:36 -0400 Subject: [PATCH] Update endpoints.py Many websites are using https, often by default. This allows https links to be recognized as well. --- mdx_oembed/endpoints.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mdx_oembed/endpoints.py b/mdx_oembed/endpoints.py index 35d5223..ce0a0d6 100644 --- a/mdx_oembed/endpoints.py +++ b/mdx_oembed/endpoints.py @@ -4,13 +4,13 @@ import oembed ENDPOINTS = { 'youtube': oembed.OEmbedEndpoint('http://www.youtube.com/oembed', [ - 'http://(*.)?youtube.com/*', - 'http://youtu.be/*', + 'https?://(*.)?youtube.com/*', + 'https?://youtu.be/*', ]), 'flickr': oembed.OEmbedEndpoint('http://www.flickr.com/services/oembed/', [ - 'http://*.flickr.com/*', + 'https?://*.flickr.com/*', ]), 'vimeo': oembed.OEmbedEndpoint('http://vimeo.com/api/oembed.json', [ - 'http://vimeo.com/*', + 'https?://vimeo.com/*', ]), }