mirror of
https://github.com/Hopiu/python-markdown-oembed.git
synced 2026-03-16 22:10:24 +00:00
Adding slideshare as a oembed provider
Adding slideshare as a oembed provider
This commit is contained in:
parent
029e1cd4f2
commit
9e11630327
1 changed files with 10 additions and 1 deletions
|
|
@ -6,6 +6,14 @@ YOUTUBE = oembed.OEmbedEndpoint('http://www.youtube.com/oembed', [
|
||||||
'https?://youtu.be/*',
|
'https?://youtu.be/*',
|
||||||
])
|
])
|
||||||
|
|
||||||
|
SLIDESHARE = oembed.OEmbedEndpoint('http://www.slideshare.net/api/oembed/2', [
|
||||||
|
'http://www.slideshare.net/*/*',
|
||||||
|
'http://fr.slideshare.net/*/*,
|
||||||
|
'http://de.slideshare.net/*/*',
|
||||||
|
'http://es.slideshare.net/*/*',
|
||||||
|
'http://pt.slideshare.net/*/*',
|
||||||
|
])
|
||||||
|
|
||||||
FLICKR = oembed.OEmbedEndpoint('http://www.flickr.com/services/oembed/', [
|
FLICKR = oembed.OEmbedEndpoint('http://www.flickr.com/services/oembed/', [
|
||||||
'https?://*.flickr.com/*',
|
'https?://*.flickr.com/*',
|
||||||
])
|
])
|
||||||
|
|
@ -17,5 +25,6 @@ VIMEO = oembed.OEmbedEndpoint('http://vimeo.com/api/oembed.json', [
|
||||||
DEFAULT_ENDPOINTS = [
|
DEFAULT_ENDPOINTS = [
|
||||||
YOUTUBE,
|
YOUTUBE,
|
||||||
FLICKR,
|
FLICKR,
|
||||||
VIMEO
|
VIMEO,
|
||||||
|
SLIDESHARE
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue