Permalink
Browse files

Added support for youtu.be urls for youtube urls

  • Loading branch information...
mvdwaeter
mvdwaeter committed Aug 8, 2012
1 parent 36d06b7 commit 9aacf2f4c070a8bbcbe87333107c18859209998a
Showing with 1 addition and 1 deletion.
  1. +1 −1 micawber/providers.py
View
@@ -113,7 +113,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 9aacf2f

Please sign in to comment.