Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 28, 2012

Conversation

mvdwaeter
Copy link
Contributor

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 added a commit that referenced this pull request Sep 28, 2012
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants