diff --git a/src/get-info.js b/src/get-info.js index 97dc8531..08621176 100644 --- a/src/get-info.js +++ b/src/get-info.js @@ -12,8 +12,7 @@ var YouTube = require("cytube-mediaquery/lib/provider/youtube"); var Vimeo = require("cytube-mediaquery/lib/provider/vimeo"); var Vidme = require("cytube-mediaquery/lib/provider/vidme"); var Streamable = require("cytube-mediaquery/lib/provider/streamable"); -require("cytube-mediaquery/lib/provider/googledrive").setHTML5HackEnabled( - Config.get("google-drive.html5-hack-enabled")); +var GoogleDrive = require("cytube-mediaquery/lib/provider/googledrive"); /* * Preference map of quality => youtube formats. @@ -502,6 +501,7 @@ var Getters = { /* google docs */ gd: function (id, callback) { + GoogleDrive.setHTML5HackEnabled(Config.get("google-drive.html5-hack-enabled")); var data = { type: "googledrive", kind: "single",