# 在标题中粘贴 Youtube 播放列表链接不会填充标题和帖子内容

**URL:** <https://meta.discourse.org/t/pasting-a-youtube-playlist-link-in-the-title-doesnt-fill-the-title-and-post-content/219646>\
**Category:** Support\
**Created:** [2022年二月28日 23:21 UTC](https://meta.discourse.org/t/pasting-a-youtube-playlist-link-in-the-title-doesnt-fill-the-title-and-post-content/219646 "2022-02-28T23:21:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [2022年二月28日 23:21 UTC](https://meta.discourse.org/t/pasting-a-youtube-playlist-link-in-the-title-doesnt-fill-the-title-and-post-content/219646/1 "2022-02-28T23:21:33Z")

</div>

我在我托管的多个论坛上都试过了，每次的结果都是这样：

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/a/ea90699b52b024f3ccf3032a7cdd726b1adc17e0.png)

然而，在 try.discourse 和 meta 上却可以正常工作：

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/5/75b90490db319ed015ffa71feae565d9bcf4b717.jpeg)

示例播放列表链接：[https://www.youtube.com/playlist?list=OLAK5uy\_kzSjyMWjRrEdqpP9x8HOq1MFcrItGQFWw](https://www.youtube.com/playlist?list=OLAK5uy_kzSjyMWjRrEdqpP9x8HOq1MFcrItGQFWw)

我没有收到任何 JavaScript 错误消息，Discourse 版本是 2.9.0.beta2，我在安全模式下尝试过，错误日志中也没有任何内容。

所以我想这可能与某个站点设置有关，但具体是哪个呢？

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2022年三月1日 07:04 UTC](https://meta.discourse.org/t/pasting-a-youtube-playlist-link-in-the-title-doesnt-fill-the-title-and-post-content/219646/2 "2022-03-01T07:04:29Z")

</div>

也许是因为服务器位置？

> [@Youtube embeddings have stopped working for servers in Europe](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128):
>
> When you are trying to one-box a youtube URL, Youtube automatically redirects to a page named [consent.youtube.com](http://consent.youtube.com). This page doesn’t have an oEmbed/OpenGraph tag, so oneboxing is unfortunately failing. [Screenshot 2021-04-01 at 18.42.07] This is definitely not Discourse’s flaw, but has to do with a (as it seems) breaking change on Youtube’s end. I suspect this happens due to some new Europe regulation, because I can’t reproduce on meta. Our server is in Europe (Germany) and you can see the re…

该主题中的解决方案仅适用于视频，不适用于播放列表和频道。因此，这些内容的一框（oneboxing）将不再起作用。

您可以尝试删除“www”，就像这里描述的一样 [Youtube embeddings have stopped working for servers in Europe - #14 by Iceman](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/14?u=moin)

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2022年三月1日 07:51 UTC](https://meta.discourse.org/t/pasting-a-youtube-playlist-link-in-the-title-doesnt-fill-the-title-and-post-content/219646/3 "2022-03-01T07:51:34Z")

</div>

> [@Moin](#):
>
> 你可以尝试删除“www”，就像这里描述的那样 [Youtube embeddings have stopped working for servers in Europe - #14 by Iceman](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/14)

这对我使用上面的示例播放列表很有效。👍 之前的测试给了我同样损坏的图片结果，但删除 www 效果很好：

 ![remove www](https://global.discourse-cdn.com/meta/original/3X/9/b/9b873e82f4250d3bc2c218e5b5f65cfd269e6ade.jpeg)

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2022年三月1日 07:58 UTC](https://meta.discourse.org/t/pasting-a-youtube-playlist-link-in-the-title-doesnt-fill-the-title-and-post-content/219646/4 "2022-03-01T07:58:21Z")

</div>

这对于频道也同样有帮助吗？

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2022年三月1日 08:22 UTC](https://meta.discourse.org/t/pasting-a-youtube-playlist-link-in-the-title-doesnt-fill-the-title-and-post-content/219646/5 "2022-03-01T08:22:24Z")

</div>

我对 YouTube 链接不太熟悉，但复制频道播放列表似乎在 www（以及移动端的 m）上运行正常。不过，我可能抓取了错误的链接。🙂 你能给我一个例子，让我尝试一下以确保一致性吗？

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2022年三月1日 08:27 UTC](https://meta.discourse.org/t/pasting-a-youtube-playlist-link-in-the-title-doesnt-fill-the-title-and-post-content/219646/6 "2022-03-01T08:27:05Z")

</div>

> **[Live Nest Box Camera 2025 - Loughborough, UK](https://www.youtube.com/channel/UCqd1aV6gTudT5TY8YVzK2Dg)**
>
> Welcome to our little nest box situated on the outskirts of Loughborough, UK. The aim is to stream live, 24/7 and we'll add edited highlight videos along the way as we follow our birds journey from establishing their nest to fledging their...

> **[Live Nest Box Camera 2025 - Loughborough, UK](https://www.youtube.com/channel/UCqd1aV6gTudT5TY8YVzK2Dg)**
>
> Welcome to our little nest box situated on the outskirts of Loughborough, UK. The aim is to stream live, 24/7 and we'll add edited highlight videos along the way as we follow our birds journey from establishing their nest to fledging their...

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2022年三月1日 08:33 UTC](https://meta.discourse.org/t/pasting-a-youtube-playlist-link-in-the-title-doesnt-fill-the-title-and-post-content/219646/7 "2022-03-01T08:33:22Z")

</div>

我无法让那个链接（精选链接或常规 onebox）正常工作。

---

<div class="post-metadata">

**Author:** ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)\
**Post date:** [2022年六月5日 14:06 UTC](https://meta.discourse.org/t/pasting-a-youtube-playlist-link-in-the-title-doesnt-fill-the-title-and-post-content/219646/8 "2022-06-05T14:06:19Z")

</div>

我看到了同样的情况，在 www.youtube 链接到播放列表时，它们在 onebox 中会失败，而删除 www 就可以正常工作。我的 DigitalOcean 服务器在伦敦。我的 Hetzner 服务器在德国也存在同样的情况。

这两种类型的链接在这台服务器（meta.discourse）上都可以正常 onebox。

所以这看起来像是一个欧洲问题。

https://www.youtube.com/embed/videoseries?list=PLWVQAe9fXZolICdfMjY4MNdYdMgTOx5QT&wmode=transparent&rel=0&autohide=1&showinfo=1&enablejsapi=1

https://www.youtube.com/embed/videoseries?list=PLWVQAe9fXZolICdfMjY4MNdYdMgTOx5QT&wmode=transparent&rel=0&autohide=1&showinfo=1&enablejsapi=1
