Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Added support for youtube urls that start with "youtu.be" #7

merged 1 commit into from Sep 28, 2012


None yet
2 participants

mvdwaeter commented Aug 8, 2012

Urls that started with youtu.be got an ProviderException.
I loosened up the regex for the youtube Provider so that these urls are also recognized as youtube urls.

In the meanwhile users can work around it with this:

import micawber
from micawber.providers import Provider

url = 'http://youtu.be/VpmOTGungnA'
pr = micawber.bootstrap_basic()
pr.register('https?://(\S*.)?youtu(\.be/|be\.com/watch)\S*', Provider('http://www.youtube.com/oembed'))
metadata = pr.request(url)

@coleifer coleifer added a commit that referenced this pull request Sep 28, 2012

@coleifer coleifer Merge pull request #7 from mvdwaeter/master
Added support for youtube urls that start with "youtu.be"

@coleifer coleifer merged commit ffe105f into coleifer:master Sep 28, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment