patrickemin
(Patrick EMIN)
15. November 2025 um 18:37
1
Hallo, früher wurde beim Einfügen einer YouTube-URL in den Titel eines neuen Beitrags automatisch der Titel des YouTube-Videos abgerufen, aber das funktioniert jetzt nicht mehr. Wissen Sie, warum?
cocococosti
(Constanza Abarca)
17. November 2025 um 13:38
2
Ich habe es gerade getestet und es funktioniert:\n\n \n\nWelche Version von Discourse verwendest du?
patrickemin
(Patrick EMIN)
17. November 2025 um 13:55
3
Ich habe 3.6.0.beta3-latest, danke fürs Testen.
Ich bin auch lokal auf 3.6.0.beta3-latest und kann den Titel ohne Probleme abrufen. Können Sie das gleiche Problem im abgesicherten Modus reproduzieren?
patrickemin
(Patrick EMIN)
17. November 2025 um 14:09
5
Ja, das gleiche Problem im abgesicherten Modus und der Titel ist immer „- YouTube“. Das passiert auch auf zwei meiner anderen Discourse-Sites mit sehr unterschiedlichen Einstellungen und installierten TCs.
1 „Gefällt mir“
cocococosti
(Constanza Abarca)
17. November 2025 um 14:13
6
Könnte es sein, dass Sie dies mit privaten YouTube-Videos testen?
patrickemin
(Patrick EMIN)
17. November 2025 um 14:14
7
Nein, das ist nicht der Fall
Moin
17. November 2025 um 14:18
8
Welche Discourse-Version genau verwenden Sie? Letzte Woche gab es eine Änderung bezüglich des Abrufs von Titeln von YouTube-Videos:
committed 04:13AM - 12 Nov 25 UTC
We currently rely on Open Graph data to render YouTube oneboxes.
However, YouTub… e does not always give us a response with the Open Graph
data necessary, leading to empty preview HTML like this that shows
as a broken image in the composer:
```
<img src="" width="480" height="360" title=" - YouTube" style="aspect-ratio: 480 / 360;">
```
In addition, our old method of parsing YouTube script tags for JSON
which contains information for the video, introduced in
https://github.com/discourse/onebox/commit/4d669d2b710483281df1b99ff1140acdada11286,
seems to no longer work reliably, possibly due to changes in YouTube's
JS structure.
To fix this, we switch to using YouTube's oEmbed endpoint which gives us
all the metadata we need for oneboxes in JSON format, including title,
author,
thumbnail URL, and video dimensions. This approach is more robust and
less likely to break
due to changes in YouTube's page structure.
c.f.
https://meta.discourse.org/t/youtube-uris-fail-to-render-thumbnails-when-oneboxed/387673
patrickemin
(Patrick EMIN)
17. November 2025 um 14:20
9