python-markdown-oembed/mdx_oembed/endpoints.py
Jordan Reiter 4b05b076be Update endpoints.py
Many websites are using https, often by default. This allows https links to be recognized as well.
2014-07-14 15:44:36 -04:00

16 lines
442 B
Python

# -*- coding: utf-8 -*-
import oembed
ENDPOINTS = {
'youtube': oembed.OEmbedEndpoint('http://www.youtube.com/oembed', [
'https?://(*.)?youtube.com/*',
'https?://youtu.be/*',
]),
'flickr': oembed.OEmbedEndpoint('http://www.flickr.com/services/oembed/', [
'https?://*.flickr.com/*',
]),
'vimeo': oembed.OEmbedEndpoint('http://vimeo.com/api/oembed.json', [
'https?://vimeo.com/*',
]),
}