mirror of
https://github.com/Hopiu/python-markdown-oembed.git
synced 2026-03-17 06:20:24 +00:00
Many websites are using https, often by default. This allows https links to be recognized as well.
16 lines
442 B
Python
16 lines
442 B
Python
# -*- coding: utf-8 -*-
|
|
import oembed
|
|
|
|
|
|
ENDPOINTS = {
|
|
'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/*',
|
|
]),
|
|
}
|