mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #642 from omnivore-app/youtube-iframes
Add test for readability on youtube embeds
This commit is contained in:
commit
4b69fb64d4
6 changed files with 66 additions and 10 deletions
|
|
@ -52,12 +52,9 @@ exports.youtubeHandler = {
|
|||
<meta property="og:article:author" content="${oembed.author_name}" />
|
||||
</head>
|
||||
<body>
|
||||
<center>
|
||||
<iframe width="${width}" height="${height}" src="https://www.youtube.com/embed/${videoId}" title="${title}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
</center>
|
||||
<br />
|
||||
<a href="${url}">${title}</a>
|
||||
<div itemscope="" itemprop="author" itemtype="http://schema.org/Person">By <a href="${oembed.author_url}">${oembed.author_name}</a></div>
|
||||
<p><a href="${url}" target="_blank">${title}</a></p>
|
||||
<p itemscope="" itemprop="author" itemtype="http://schema.org/Person">By <a href="${oembed.author_url}" target="_blank">${oembed.author_name}</a></p>
|
||||
</body>
|
||||
</html>`
|
||||
|
||||
|
|
|
|||
|
|
@ -52,12 +52,9 @@ exports.youtubeHandler = {
|
|||
<meta property="og:article:author" content="${oembed.author_name}" />
|
||||
</head>
|
||||
<body>
|
||||
<center>
|
||||
<iframe width="${width}" height="${height}" src="https://www.youtube.com/embed/${videoId}" title="${title}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
</center>
|
||||
<br />
|
||||
<a href="${url}">${title}</a>
|
||||
<div itemscope="" itemprop="author" itemtype="http://schema.org/Person">By <a href="${oembed.author_url}">${oembed.author_name}</a></div>
|
||||
<p><a href="${url}" target="_blank">${title}</a></p>
|
||||
<p itemscope="" itemprop="author" itemtype="http://schema.org/Person">By <a href="${oembed.author_url}" target="_blank">${oembed.author_name}</a></p>
|
||||
</body>
|
||||
</html>`
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"title": "The Story of Celeste's Development",
|
||||
"byline": "Noclip - Video Game Documentaries",
|
||||
"dir": null,
|
||||
"excerpt": "The Story of Celeste's Development",
|
||||
"siteName": null,
|
||||
"siteIcon": "",
|
||||
"previewImage": "https://i.ytimg.com/vi/c3mbELVqAmo/hqdefault.jpg",
|
||||
"publishedDate": null,
|
||||
"readerable": false
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<DIV class="page" id="readability-page-1">
|
||||
<iframe width="619.4690265486726" height="350" src="https://www.youtube.com/embed/c3mbELVqAmo" title="The Story of Celeste's Development" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
<p>
|
||||
<a href="https://www.youtube.com/watch?v=c3mbELVqAmo" target="_blank"> The Story of Celeste's Development</a>
|
||||
</p>
|
||||
<p itemscope itemprop="author" itemtype="http://schema.org/Person"> By <a href="https://www.youtube.com/c/NoclipVideo" target="_blank">Noclip - Video Game Documentaries</a>
|
||||
</p>
|
||||
</DIV>
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>The Story of Celeste's Development</title>
|
||||
<meta
|
||||
property="og:image"
|
||||
content="https://i.ytimg.com/vi/c3mbELVqAmo/hqdefault.jpg"
|
||||
/>
|
||||
<meta
|
||||
property="og:image:secure_url"
|
||||
content="https://i.ytimg.com/vi/c3mbELVqAmo/hqdefault.jpg"
|
||||
/>
|
||||
<meta property="og:title" content="The Story of Celeste's Development" />
|
||||
<meta property="og:description" content="" />
|
||||
<meta
|
||||
property="og:article:author"
|
||||
content="Noclip - Video Game Documentaries"
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<iframe
|
||||
class="omnivore-preserve"
|
||||
width="619.4690265486726"
|
||||
height="350"
|
||||
src="https://www.youtube.com/embed/c3mbELVqAmo"
|
||||
title="The Story of Celeste's Development"
|
||||
frameborder="0"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowfullscreen
|
||||
></iframe>
|
||||
<p>
|
||||
<a href="https://www.youtube.com/watch?v=c3mbELVqAmo" target="_blank">
|
||||
The Story of Celeste's Development</a
|
||||
>
|
||||
</p>
|
||||
<p itemscope="" itemprop="author" itemtype="http://schema.org/Person">
|
||||
By
|
||||
<a href="https://www.youtube.com/c/NoclipVideo" target="_blank"
|
||||
>Noclip - Video Game Documentaries</a
|
||||
>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
https://www.youtube.com/watch?v=c3mbELVqAmo
|
||||
Loading…
Reference in a new issue