python-markdown-oembed/mdx_oembed/endpoints.py
J. Tanner Netterville e4ec8a72fb initial commit
Functional beta
2012-11-13 15:28:10 -06:00

16 lines
434 B
Python

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