Comments (2)
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&autoplay=1">
<meta property="og:video:secure_url" content="https://vimeo.com/moogaloop.swf?clip_id=180763356&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 asog: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.
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&autohide=1">
<meta property="og:video:secure_url" content="https://www.youtube.com/v/tja9cTzgq5k?version=3&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)
- Remove coveralls access token
- Update to CircleCI v2 API
- Possible documentation issue HOT 1
- Wiki changes
- CODE_OF_CONDUCT.md file missing
- Typescript types support HOT 1
- defaultValue for favicon should be "/favicon.ico" rather than "favicon.ico"
- Add publication date support for articles pages
- Suspicious www URL parsing in getProvider()
- Add highres_icon_url rules HOT 2
- Find the largest high res icon HOT 1
- Update README.md HOT 1
- Custom formatting for provider ? HOT 1
- Aliases for rules? HOT 1
- Remove Fathom 1.0 Dependency
- Explicitly flag whether an icon was found
- Usage in browser instructions HOT 1
- Move special post processing cases to processors
- Update description and preview image rules
- Icon scoring lacks support for vector icons HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from page-metadata-parser.