Support new google drive link format

This commit is contained in:
calzoneman 2015-03-20 13:57:13 -05:00
parent 69c7f38e1f
commit f3fe933f6e
1 changed files with 2 additions and 1 deletions

View File

@ -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"