Fix #925
This commit is contained in:
parent
af62fbaef4
commit
bd63013524
|
@ -2,7 +2,7 @@
|
||||||
"author": "Calvin Montgomery",
|
"author": "Calvin Montgomery",
|
||||||
"name": "CyTube",
|
"name": "CyTube",
|
||||||
"description": "Online media synchronizer and chat",
|
"description": "Online media synchronizer and chat",
|
||||||
"version": "3.82.5",
|
"version": "3.82.6",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "http://github.com/calzoneman/sync"
|
"url": "http://github.com/calzoneman/sync"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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\/([^\?&#]+)/))) {
|
if((m = url.match(/youtu\.be\/([^\?&#]+)/))) {
|
||||||
return {
|
return {
|
||||||
id: m[1],
|
id: m[1],
|
||||||
|
|
Loading…
Reference in a new issue