kgaughan / komorebi

A linklog engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use ogp.py to construct embeds for platforms that don't support oEmbed

kgaughan opened this issue · comments

I'm thinking of the likes of Bandcamp. Here's an example of such content:

<meta property="og:video" content="https://bandcamp.com/EmbeddedPlayer/v=2/track=1335882601/size=large/tracklist=false/artwork=small/">
<meta property="og:video:secure_url" content="https://bandcamp.com/EmbeddedPlayer/v=2/track=1335882601/size=large/tracklist=false/artwork=small/">
<meta property="og:video:type" content="text/html">
<meta property="og:video:height" content="120">
<meta property="og:video:width" content="400">

That could be translated into an iframe easily enough, though it's not something that could be wrapped in a façade, so some kind of lazy loading might work better here, so it only gets downloaded if it scrolls into view.