Git Product home page Git Product logo

Comments (2)

pdehaan avatar pdehaan commented on May 26, 2024

Just spotted in https://vimeo.com/180763356 source:

<meta property="og:type" content="video">
...
<meta property="og:video:url" content="https://player.vimeo.com/video/180763356?autoplay=1">
<meta property="og:video:secure_url" content="https://player.vimeo.com/video/180763356?autoplay=1">
<meta property="og:video:type" content="text/html">
<meta property="og:video:width" content="1280">
<meta property="og:video:height" content="720">

<meta property="og:video:url" content="https://vimeo.com/moogaloop.swf?clip_id=180763356&amp;autoplay=1">
<meta property="og:video:secure_url" content="https://vimeo.com/moogaloop.swf?clip_id=180763356&amp;autoplay=1">
<meta property="og:video:type" content="application/x-shockwave-flash">
<meta property="og:video:width" content="1280">
<meta property="og:video:height" content="720">

If we blindly pull some/all/first og:video:url or og:video:secure_url tags, we could get a crummy "application/x-shockwave-flash" SWF video.


Per http://ogp.me/#structured:

The og:video tag has the identical tags as og:image. Here is an example:

<meta property="og:video" content="http://example.com/movie.swf" />
<meta property="og:video:secure_url" content="https://secure.example.com/movie.swf" />
<meta property="og:video:type" content="application/x-shockwave-flash" />
<meta property="og:video:width" content="400" />
<meta property="og:video:height" content="300" />

Where og:image:type is "A MIME type for this image."

Not sure how easy it'd be to use Fathom to extract the video metadata and then filter out anything with a mime type of "application/x-shockwave-flash" since a bunch of these properties are duplicated and seem to be in specific groups/orders.

from page-metadata-parser.

pdehaan avatar pdehaan commented on May 26, 2024

Similarly, here's a YouTube example of duplicated HTML/SWF videos: https://www.youtube.com/watch?v=tja9cTzgq5k

<meta property="og:type" content="video">

<meta property="og:video:url" content="https://www.youtube.com/embed/tja9cTzgq5k">
<meta property="og:video:secure_url" content="https://www.youtube.com/embed/tja9cTzgq5k">
<meta property="og:video:type" content="text/html">
<meta property="og:video:width" content="480">
<meta property="og:video:height" content="360">

<meta property="og:video:url" content="http://www.youtube.com/v/tja9cTzgq5k?version=3&amp;autohide=1">
<meta property="og:video:secure_url" content="https://www.youtube.com/v/tja9cTzgq5k?version=3&amp;autohide=1">
<meta property="og:video:type" content="application/x-shockwave-flash">
<meta property="og:video:width" content="480">
<meta property="og:video:height" content="360">

from page-metadata-parser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.