This commit is contained in:
Calvin Montgomery 2021-10-13 20:14:44 -07:00
parent af62fbaef4
commit bd63013524
2 changed files with 9 additions and 1 deletions

View file

@ -1309,6 +1309,14 @@ function parseMediaLink(url) {
};
}
// YouTube shorts
if((m = url.match(/youtube\.com\/shorts\/([a-zA-Z0-9_-]{11})/))) {
return {
id: m[1],
type: "yt"
};
}
if((m = url.match(/youtu\.be\/([^\?&#]+)/))) {
return {
id: m[1],