2012-11-13 21:28:10 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
import oembed
|
|
|
|
|
|
2016-02-16 11:04:24 +00:00
|
|
|
YOUTUBE = oembed.OEmbedEndpoint('http://www.youtube.com/oembed', [
|
|
|
|
|
'https?://(*.)?youtube.com/*',
|
|
|
|
|
'https?://youtu.be/*',
|
|
|
|
|
])
|
2012-11-13 21:28:10 +00:00
|
|
|
|
2016-02-16 11:04:24 +00:00
|
|
|
FLICKR = oembed.OEmbedEndpoint('http://www.flickr.com/services/oembed/', [
|
|
|
|
|
'https?://*.flickr.com/*',
|
|
|
|
|
])
|
2015-04-21 09:18:42 +00:00
|
|
|
|
2016-02-16 11:04:24 +00:00
|
|
|
VIMEO = oembed.OEmbedEndpoint('http://vimeo.com/api/oembed.json', [
|
|
|
|
|
'https?://vimeo.com/*',
|
|
|
|
|
])
|
2015-04-21 09:18:42 +00:00
|
|
|
|
2016-02-16 11:04:24 +00:00
|
|
|
DEFAULT_ENDPOINTS = [
|
|
|
|
|
YOUTUBE,
|
|
|
|
|
FLICKR,
|
|
|
|
|
VIMEO
|
2015-04-21 09:23:39 +00:00
|
|
|
]
|