mirror of
https://github.com/Hopiu/python-markdown-oembed.git
synced 2026-03-16 22:10:24 +00:00
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:
parent
632279ec9f
commit
4b05b076be
1 changed files with 4 additions and 4 deletions
|
|
@ -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/*',
|
||||||
]),
|
]),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue