Fix #925
This commit is contained in:
parent
af62fbaef4
commit
bd63013524
2 changed files with 9 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue