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

@ -2,7 +2,7 @@
"author": "Calvin Montgomery",
"name": "CyTube",
"description": "Online media synchronizer and chat",
"version": "3.82.5",
"version": "3.82.6",
"repository": {
"url": "http://github.com/calzoneman/sync"
},

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],