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

og:image is not parsed correct if e.g. og:image:width exists on page #250

Open
vonholst opened this issue Dec 8, 2015 · 1 comment
Open

Comments

@vonholst
Copy link

vonholst commented Dec 8, 2015

og:image is parsed correctly at first
if there are more og:image attributes, e.g. og:image:width it replaces the image attribute.

@vonholst
Copy link
Author

I would suggest the following modification:
opengraph_dict.update({u"_".join(attr.split(":")[1:]): value})

This will yield image, image_width, image_height, ...

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

No branches or pull requests

1 participant