When pasting the video on most places works.. but in others it does not show(the video name).. only shows as "PeerTube" will look when I have time why.. but just for the heads up I put it here in case this is happening to other people and they just think is their fault or nobody has notice.
@ReK2Fernandez please describe properly the issue, as right now it's too vague to figure out. I'll reopen then.
Also stumbled upon this issue with our IRC bot.
The bot fetches the url to extract the title to provide context for other people in the channel.
Because the title is not in the original html but presumably updated later from client side code, the bot cannot show the video title.
Most messenger apps seem to read opengraph data and show the title correctly.
This is an example from our channel, GlaDOS is the bot that fetches the titles for the url and the first time it works as expected, the second time not so much.

Running
curl https://peertube.video/videos/watch/41dd1087-c2bb-48d9-9c5c-071119b61ac1
returns
[...]
<title>PeerTube.video</title>
[...]
<meta property="og:type" content="video" /><meta property="og:title" content="Introducing GNOME 3.30: “Almería”" />
[...]
So the fix would be to use the og:title contents also in the
I hope this actually is the same problem and this explanation is sufficient to reopen the issue.
Thanks @wirew0rm - that's enough to investigate indeed
Not the cleanest but if you:
html = ClientHtml.addTitleTag(html)
html = ClientHtml.addDescriptionTag(html)
const titleTag = '<title>' + videoNameEscaped + '</title>';
const descriptionTag = `<meta name="description" content="${videoDescriptionEscaped}" />`;
return htmlStringPage.replace(CUSTOM_HTML_TAG_COMMENTS.OPENGRAPH_AND_OEMBED, tagsString).replace(CUSTOM_HTML_TAG_COMMENTS.TITLE, titleTag).replace(CUSTOM_HTML_TAG_COMMENTS.DESCRIPTION, descriptionTag);
...that should change the title and description to what they should be.
thanks! @Chocobozzz
Most helpful comment
Thanks @wirew0rm - that's enough to investigate indeed