From 2ffc79598e2510ad99c8a92281f4e7893e72c96a Mon Sep 17 00:00:00 2001 From: Gio Date: Thu, 17 Dec 2020 18:40:27 -0600 Subject: [PATCH] Youtube endpoint must use HTTPS Fixes an issue where youtube embeds would always error 403 --- mdx_oembed/endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdx_oembed/endpoints.py b/mdx_oembed/endpoints.py index 2f92b7c..16d0ba6 100644 --- a/mdx_oembed/endpoints.py +++ b/mdx_oembed/endpoints.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import oembed -YOUTUBE = oembed.OEmbedEndpoint('http://www.youtube.com/oembed', [ +YOUTUBE = oembed.OEmbedEndpoint('https://www.youtube.com/oembed', [ 'https?://(*.)?youtube.com/*', 'https?://youtu.be/*', ])