瀏覽代碼

Use oEmbed for YouTube Shorts (#15025)

It seems that YouTube Short previews do not work in some
regions, but the oEmbed information for those areas is still
valid.

This causes YouTube Shorts to always use (only) the oEmbed
endpoint which is a minor regression for regions where the URL
preview was already working -- some of the additional video
metadata is lost. It is not likely that clients are using this today
and it is more beneficial to have a limited preview working everywhere
than unused metadata in the Open Graph response.
tags/v1.84.0rc1
Sandro 1 年之前
committed by GitHub
父節點
當前提交
5f8822854d
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 2 個文件被更改,包括 14 次插入0 次删除
  1. +1
    -0
      changelog.d/15025.misc
  2. +13
    -0
      synapse/res/providers.json

+ 1
- 0
changelog.d/15025.misc 查看文件

@@ -0,0 +1 @@
Use oEmbed to generate URL previews for YouTube Shorts.

+ 13
- 0
synapse/res/providers.json 查看文件

@@ -11,5 +11,18 @@
"url": "https://publish.twitter.com/oembed"
}
]
},
{
"provider_name": "YouTube Shorts",
"provider_url": "http://www.youtube.com/",
"endpoints": [
{
"schemes": [
"https://youtube.com/shorts/*",
"https://*.youtube.com/shorts/*"
],
"url": "https://www.youtube.com/oembed"
}
]
}
]

Loading…
取消
儲存