Update endpoints.py

Many websites are using https, often by default. This allows https links to be recognized as well.
This commit is contained in:
Jordan Reiter 2014-07-14 15:44:36 -04:00
parent 632279ec9f
commit 4b05b076be

View file

@ -4,13 +4,13 @@ import oembed
ENDPOINTS = { ENDPOINTS = {
'youtube': oembed.OEmbedEndpoint('http://www.youtube.com/oembed', [ 'youtube': oembed.OEmbedEndpoint('http://www.youtube.com/oembed', [
'http://(*.)?youtube.com/*', 'https?://(*.)?youtube.com/*',
'http://youtu.be/*', 'https?://youtu.be/*',
]), ]),
'flickr': oembed.OEmbedEndpoint('http://www.flickr.com/services/oembed/', [ 'flickr': oembed.OEmbedEndpoint('http://www.flickr.com/services/oembed/', [
'http://*.flickr.com/*', 'https?://*.flickr.com/*',
]), ]),
'vimeo': oembed.OEmbedEndpoint('http://vimeo.com/api/oembed.json', [ 'vimeo': oembed.OEmbedEndpoint('http://vimeo.com/api/oembed.json', [
'http://vimeo.com/*', 'https?://vimeo.com/*',
]), ]),
} }