mirror of https://github.com/calzoneman/sync.git
Support new google drive link format
This commit is contained in:
parent
69c7f38e1f
commit
f3fe933f6e
|
@ -1310,7 +1310,8 @@ function parseMediaLink(url) {
|
|||
};
|
||||
}
|
||||
|
||||
if ((m = url.match(/(?:docs|drive)\.google\.com\/file\/d\/([^\/]*)/))) {
|
||||
if ((m = url.match(/(?:docs|drive)\.google\.com\/file\/d\/([^\/]*)/)) ||
|
||||
(m = url.match(/drive\.google\.com\/open\?id=([^&]*)/))) {
|
||||
return {
|
||||
id: m[1],
|
||||
type: "gd"
|
||||
|
|
Loading…
Reference in New Issue