python-markdown-oembed/mdx_oembed/endpoints.py

22 lines
461 B
Python
Raw Normal View History

2012-11-13 21:28:10 +00:00
# -*- coding: utf-8 -*-
import oembed
DEFAULT_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
]),
}