From c2510e0e2e1d332e6bc08c5b72bcef0a8b0acd81 Mon Sep 17 00:00:00 2001 From: Tony Date: Fri, 3 May 2024 04:12:36 +0800 Subject: [PATCH] fix(route): set preload to metadata as suggested by the [spec](https://html.spec.whatwg.org/multipage/media.html#attr-media-preload) (#15448) --- lib/routes/caixin/templates/article.art | 2 +- lib/routes/douyin/templates/embed.art | 2 +- lib/routes/fansly/templates/media.art | 2 +- lib/routes/ifeng/templates/video.art | 2 +- lib/routes/instagram/templates/video.art | 2 +- lib/routes/kcna/utils.ts | 2 +- lib/routes/mingpao/templates/fancybox.art | 2 +- lib/routes/missav/templates/preview.art | 2 +- lib/routes/pikabu/templates/video.art | 2 +- lib/routes/pornhub/templates/description.art | 2 +- lib/routes/sina/templates/video.art | 2 +- lib/routes/tiktok/templates/user.art | 2 +- lib/routes/zhihu/topic.ts | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/routes/caixin/templates/article.art b/lib/routes/caixin/templates/article.art index 6b33c31ea..fd30a943e 100644 --- a/lib/routes/caixin/templates/article.art +++ b/lib/routes/caixin/templates/article.art @@ -15,7 +15,7 @@ <% const video = $('script').text().match(/initPlayer\('(.*?)','(.*?)'\)/); %> <% const videoUrl = video[1]; %> <% const poster = video[2]; %> - +
{{ /if }} diff --git a/lib/routes/douyin/templates/embed.art b/lib/routes/douyin/templates/embed.art index 530226b26..e8f32e690 100644 --- a/lib/routes/douyin/templates/embed.art +++ b/lib/routes/douyin/templates/embed.art @@ -1,4 +1,4 @@ -