diff --git a/assets/radar-rules.js b/assets/radar-rules.js
index ced4d2191a..43c761d358 100644
--- a/assets/radar-rules.js
+++ b/assets/radar-rules.js
@@ -205,7 +205,7 @@
],
},
'youtube.com': {
- _name: 'Youtube',
+ _name: 'YouTube',
www: [
{
title: '用户',
diff --git a/docs/en/multimedia.md b/docs/en/multimedia.md
index d6ed19b8a4..847302ce12 100644
--- a/docs/en/multimedia.md
+++ b/docs/en/multimedia.md
@@ -113,6 +113,6 @@ Official RSS: https://eztv.io/ezrss.xml
-## Youtube
+## YouTube
Refer to [#youtube](/en/social-media.html#youtube)
diff --git a/docs/en/social-media.md b/docs/en/social-media.md
index b804d46249..890f4f6b81 100644
--- a/docs/en/social-media.md
+++ b/docs/en/social-media.md
@@ -226,7 +226,7 @@ This route requires Twitter token's corresponding id, therefore it's only availb
-## Youtube
+## YouTube
::: tip Tiny Tiny RSS users please notice
diff --git a/docs/multimedia.md b/docs/multimedia.md
index 3eb1b6bc77..aee581d66d 100644
--- a/docs/multimedia.md
+++ b/docs/multimedia.md
@@ -459,7 +459,7 @@ pageClass: routes
-## Youtube
+## YouTube
见 [#youtube](/social-media.html#youtube)
diff --git a/docs/social-media.md b/docs/social-media.md
index c7abb1e0e0..9ffdadd889 100644
--- a/docs/social-media.md
+++ b/docs/social-media.md
@@ -540,11 +540,11 @@ Tiny Tiny RSS 会给所有 iframe 元素添加 `sandbox="allow-scripts"` 属性
-## Youtube
+## YouTube
::: tip Tiny Tiny RSS 用户请注意
-Tiny Tiny RSS 会给所有 iframe 元素添加 `sandbox="allow-scripts"` 属性,导致无法加载 Youtube 内嵌视频,如果需要使用内嵌视频请为 Tiny Tiny RSS 安装 [remove_iframe_sandbox](https://github.com/DIYgod/ttrss-plugin-remove-iframe-sandbox) 插件
+Tiny Tiny RSS 会给所有 iframe 元素添加 `sandbox="allow-scripts"` 属性,导致无法加载 YouTube 内嵌视频,如果需要使用内嵌视频请为 Tiny Tiny RSS 安装 [remove_iframe_sandbox](https://github.com/DIYgod/ttrss-plugin-remove-iframe-sandbox) 插件
:::
diff --git a/lib/router.js b/lib/router.js
index 81a70850ef..1d37bdf284 100644
--- a/lib/router.js
+++ b/lib/router.js
@@ -226,7 +226,7 @@ router.get('/twitter/followings/:id/:routeParams?', require('./routes/twitter/fo
router.get('/twitter/keyword/:keyword/:routeParams?', require('./routes/twitter/keyword'));
router.get('/twitter/trends/:woeid?', require('./routes/twitter/trends'));
-// Youtube
+// YouTube
router.get('/youtube/user/:username/:embed?', require('./routes/youtube/user'));
router.get('/youtube/channel/:id/:embed?', require('./routes/youtube/channel'));
router.get('/youtube/playlist/:id/:embed?', require('./routes/youtube/playlist'));
diff --git a/lib/routes/youtube/channel.js b/lib/routes/youtube/channel.js
index 4de629252a..006940e3cc 100644
--- a/lib/routes/youtube/channel.js
+++ b/lib/routes/youtube/channel.js
@@ -3,7 +3,7 @@ const config = require('@/config').value;
module.exports = async (ctx) => {
if (!config.youtube || !config.youtube.key) {
- throw 'Youtube RSS is disabled due to the lack of relevant config';
+ throw 'YouTube RSS is disabled due to the lack of relevant config';
}
const id = ctx.params.id;
const embed = !ctx.params.embed;
@@ -13,9 +13,9 @@ module.exports = async (ctx) => {
const data = (await utils.getPlaylistItems(playlistId, 'snippet,contentDetails')).data.items;
ctx.state.data = {
- title: `${data[0].snippet.channelTitle} 的 Youtube 视频`,
+ title: `${data[0].snippet.channelTitle} 的 YouTube 视频`,
link: `https://www.youtube.com/channel/${id}`,
- description: `${data[0].snippet.channelTitle} 的 Youtube 视频`,
+ description: `${data[0].snippet.channelTitle} 的 YouTube 视频`,
item: data
.filter((d) => d.snippet.title !== 'Private video' && d.snippet.title !== 'Deleted video')
.map((item) => {
diff --git a/lib/routes/youtube/playlist.js b/lib/routes/youtube/playlist.js
index 4ec7c89321..bfd420f62c 100644
--- a/lib/routes/youtube/playlist.js
+++ b/lib/routes/youtube/playlist.js
@@ -3,7 +3,7 @@ const config = require('@/config').value;
module.exports = async (ctx) => {
if (!config.youtube || !config.youtube.key) {
- throw 'Youtube RSS is disabled due to the lack of relevant config';
+ throw 'YouTube RSS is disabled due to the lack of relevant config';
}
const id = ctx.params.id;
const embed = !ctx.params.embed;
diff --git a/lib/routes/youtube/user.js b/lib/routes/youtube/user.js
index 918799c47b..969466f16c 100644
--- a/lib/routes/youtube/user.js
+++ b/lib/routes/youtube/user.js
@@ -3,7 +3,7 @@ const config = require('@/config').value;
module.exports = async (ctx) => {
if (!config.youtube || !config.youtube.key) {
- throw 'Youtube RSS is disabled due to the lack of relevant config';
+ throw 'YouTube RSS is disabled due to the lack of relevant config';
}
const username = ctx.params.username;
const embed = !ctx.params.embed;
@@ -13,9 +13,9 @@ module.exports = async (ctx) => {
const data = (await utils.getPlaylistItems(playlistId, 'snippet,contentDetails')).data.items;
ctx.state.data = {
- title: `${username} 的 Youtube 视频`,
+ title: `${username} 的 YouTube 视频`,
link: `https://www.youtube.com/user/${username}`,
- description: `${username} 的 Youtube 视频`,
+ description: `${username} 的 YouTube 视频`,
item: data
.filter((d) => d.snippet.title !== 'Private video' && d.snippet.title !== 'Deleted video')
.map((item) => {