python-markdown-oembed/mdx_oembed/endpoints.py
Tanner Netterville 87bbf8fc90 Release 0.2.0
- Merged improvements from Wenzil's fork. Thanks Wenzil!
- Update for new version of Markdown breaks backwards compatability.
- Dropped test support for Python 2.6
- Fixed test suite (including Travis CI config)
2016-02-16 05:04:24 -06:00

21 lines
441 B
Python

# -*- coding: utf-8 -*-
import oembed
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/*',
])
DEFAULT_ENDPOINTS = [
YOUTUBE,
FLICKR,
VIMEO
]