Permalink
Browse files

Merge pull request #7 from mvdwaeter/master

Added support for youtube urls that start with "youtu.be"
  • Loading branch information...
coleifer committed Sep 28, 2012
2 parents a3e4d49 + 9aacf2f commit ffe105f410ea419d06ca209e947b9885c4d15b4d
Showing with 1 addition and 1 deletion.
  1. +1 −1 micawber/providers.py
View
@@ -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/'))

0 comments on commit ffe105f

Please sign in to comment.