Skip to content

Commit

Permalink
Added support for youtu.be urls for youtube urls
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdwaeter committed Aug 8, 2012
1 parent 36d06b7 commit 9aacf2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion micawber/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/'))
Expand Down

0 comments on commit 9aacf2f

Please sign in to comment.