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 = {
'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/*',
]),
}