awkward / Ocarina

A library to get metadata and Open Graph information from URLs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to parse YouTube link

thierrybucco opened this issue · comments

Ocarina is unable to parse this YouTube link:

https://www.youtube.com/watch?v=v1wfQPGXhVA

This is because og:description is in body tag instead of head.

Correct Xpath query should be: "/html/body/meta[(@Property|@name)="og:description"]/@content"

What do you suggest for fixing it?

@davidvanleeuwen @samuelbeek @renssies @AvdLee @daveyheuser

Thanks!

Fixed it. Will push.

I've approved your pull request and merged it. I'm planning to make some additional changes but something is wrong with the rights for me. After that, I will make a release on GitHub as well :)