mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
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.
This commit is contained in:
parent
1d6140ec8a
commit
5f8822854d
1
changelog.d/15025.misc
Normal file
1
changelog.d/15025.misc
Normal file
@ -0,0 +1 @@
|
||||
Use oEmbed to generate URL previews for YouTube Shorts.
|
@ -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…
Reference in New Issue
Block a user