From a33735e55eb11e7e605a01f2e32504553693e52d Mon Sep 17 00:00:00 2001 From: Logan Rockmore Date: Mon, 18 Jan 2021 17:48:33 -0500 Subject: [PATCH] Use the YouTube no cookie URL for embedding. (#6722) --- lib/routes/youtube/channel.js | 2 +- lib/routes/youtube/playlist.js | 2 +- lib/routes/youtube/user.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/routes/youtube/channel.js b/lib/routes/youtube/channel.js index 7f4b18aaa..cebdde0db 100644 --- a/lib/routes/youtube/channel.js +++ b/lib/routes/youtube/channel.js @@ -25,7 +25,7 @@ module.exports = async (ctx) => { return { title: snippet.title, description: `${ - embed ? '' : '' + embed ? '' : '' }${utils.formatDescription(snippet.description)}`, pubDate: new Date(snippet.publishedAt).toUTCString(), link: `https://www.youtube.com/watch?v=${videoId}`, diff --git a/lib/routes/youtube/playlist.js b/lib/routes/youtube/playlist.js index f944ded35..0954e4a5a 100644 --- a/lib/routes/youtube/playlist.js +++ b/lib/routes/youtube/playlist.js @@ -24,7 +24,7 @@ module.exports = async (ctx) => { const img = utils.getThumbnail(snippet.thumbnails); return { title: snippet.title, - description: `${embed ? '' : ''} + description: `${embed ? '' : ''} ${utils.formatDescription(snippet.description)}`, pubDate: new Date(snippet.publishedAt).toUTCString(), link: `https://www.youtube.com/watch?v=${videoId}`, diff --git a/lib/routes/youtube/user.js b/lib/routes/youtube/user.js index 126599b69..56f400c63 100644 --- a/lib/routes/youtube/user.js +++ b/lib/routes/youtube/user.js @@ -25,7 +25,7 @@ module.exports = async (ctx) => { return { title: snippet.title, description: `${ - embed ? '' : '' + embed ? '' : '' }${utils.formatDescription(snippet.description)}`, pubDate: new Date(snippet.publishedAt).toUTCString(), link: `https://www.youtube.com/watch?v=${videoId}`,