python-markdown-oembed/mdx_oembed/endpoints.py

17 lines
442 B
Python
Raw Permalink Normal View History

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