Support new google drive link format

This commit is contained in:
calzoneman 2015-03-20 13:57:13 -05:00
parent 69c7f38e1f
commit f3fe933f6e

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"