Closed manubb closed 8 years ago
The first one is a bug (fixed, pending publish). The second one shows a problem but not where you expected it. Compare to this:
url-inspector https://www.youtube.com/watch?v=CtP8VABF5pk
{
"url": "https://www.youtube.com/watch?v=CtP8VABF5pk",
"mime": "text/html; charset=utf-8",
"type": "video",
"title": "Kutiman - Thru You Too - NO ONE IN THIS WORLD",
"duration": "00:04:22",
"site": "youtube",
"embed": "https://www.youtube.com/embed/CtP8VABF5pk",
"thumbnail": "https://i.ytimg.com/vi/CtP8VABF5pk/maxresdefault.jpg",
"icon": "https://s.ytimg.com/yts/img/favicon-vflz7uhzw.ico",
"width": "1280",
"height": "720",
"ext": "html",
"html": "<iframe src=\"https://www.youtube.com/embed/CtP8VABF5pk\"></iframe>"
}
In both cases, we have audio/video types but html mime type: it means it is an embeddable html object of the given type. In the audio case, the bug is in the "html" snippet - it should be an iframe.
Great. Thanks.
Fixed in url-inspector@1.4.9
url-inspector reports incorrect data on some urls. For examples: ./url-inspector.js http://www.lavieenbois.com/ does not find any title and returns:
and ./url-inspector.js https://myspace.com/unefemmemariee/music/songs returns:
where type is audio whereas mime is "text/html".