mirror of https://github.com/calzoneman/sync.git
Fix #925
This commit is contained in:
parent
af62fbaef4
commit
bd63013524
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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],
|
||||
|
|
Loading…
Reference in New Issue