From 52b26abfbd24bda4a70f1d97b6b4cd9af168fbbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Thu, 9 Aug 2018 16:29:28 +0900 Subject: [PATCH] Update general.ts --- src/general.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/general.ts b/src/general.ts index 2148cf7..f3dec8a 100644 --- a/src/general.ts +++ b/src/general.ts @@ -49,6 +49,9 @@ export default async (url: URL.Url): Promise => { image = image ? URL.resolve(url.href, image) : null; + const player = + $('meta[property="twitter:player"]').attr('content'); + let description = $('meta[property="og:description"]').attr('content') || $('meta[property="twitter:description"]').attr('content') || @@ -118,6 +121,7 @@ export default async (url: URL.Url): Promise => { icon: icon || null, description: description || null, thumbnail: image || null, + player: player || null, sitename: siteName || null }; };