Get the published date

This commit is contained in:
Hongbo Wu
2023-04-06 16:41:21 +08:00
parent 70f4068d89
commit bfbd80e8f1

View File

@ -36,7 +36,7 @@ export class PipedVideoHandler extends ContentHandler {
thumbnailUrl: string
uploader: string
uploaderUrl: string
uploadedDate: string
uploadDate: string
description: string
videoStreams: {
width: number
@ -68,7 +68,7 @@ export class PipedVideoHandler extends ContentHandler {
<meta property="og:description" content="${metadata.description}" />
<meta property="og:article:author" content="${authorName}" />
<meta property="og:site_name" content="Piped" />
<meta property="article:published_time" content="${metadata.uploadedDate}" />
<meta property="article:published_time" content="${metadata.uploadDate}" />
</head>
<body>
<iframe width="${width}" height="${height}" src="${src}" title="${escapedTitle}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>