Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #7 from mvdwaeter/master

Added support for youtube urls that start with "youtu.be"
  • Loading branch information...
commit ffe105f410ea419d06ca209e947b9885c4d15b4d 2 parents a3e4d49 + 9aacf2f
@coleifer coleifer authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  micawber/providers.py
View
2  micawber/providers.py
@@ -115,7 +115,7 @@ def bootstrap_basic(cache=None):
# complements of oembed.com#section7
pr = ProviderRegistry(cache)
pr.register('http://\S*?flickr.com/\S*', Provider('http://www.flickr.com/services/oembed/'))
- pr.register('https?://\S*.youtu(\.be|be\.com)/watch\S*', Provider('http://www.youtube.com/oembed'))
+ pr.register('https?://(\S*.)?youtu(\.be/|be\.com/watch)\S*', Provider('http://www.youtube.com/oembed'))
pr.register('http://\S*.viddler.com/\S*', Provider('http://lab.viddler.com/services/oembed/'))
pr.register('http://qik.com/video/\S*', Provider('http://qik.com/api/oembed.json'))
pr.register('http://\S*.revision3.com/\S*', Provider('http://revision3.com/api/oembed/'))
Please sign in to comment.
Something went wrong with that request. Please try again.