Fix google docs autorefresh
This commit is contained in:
parent
738dd3fb75
commit
ca5ad87414
|
@ -1031,7 +1031,7 @@ PlaylistModule.prototype.refreshGoogleDocs = function (cb) {
|
||||||
InfoGetter.getMedia(this.current.media.id, "gd", function (err, media) {
|
InfoGetter.getMedia(this.current.media.id, "gd", function (err, media) {
|
||||||
if (err) {
|
if (err) {
|
||||||
Logger.errlog.log("Google Docs autorefresh failed: " + err);
|
Logger.errlog.log("Google Docs autorefresh failed: " + err);
|
||||||
Logger.errlog.log("ID was: " + this.current.media.id);
|
Logger.errlog.log("ID was: " + self.current.media.id);
|
||||||
self.current.media.meta.object = self.current.media.meta.object || null;
|
self.current.media.meta.object = self.current.media.meta.object || null;
|
||||||
cb && cb();
|
cb && cb();
|
||||||
self.channel.activeLock.release();
|
self.channel.activeLock.release();
|
||||||
|
|
|
@ -683,7 +683,7 @@ var Getters = {
|
||||||
/* WARNING: hacks inbound */
|
/* WARNING: hacks inbound */
|
||||||
var options = {
|
var options = {
|
||||||
host: "docs.google.com",
|
host: "docs.google.com",
|
||||||
path: "/file/d/" + id + "/edit",
|
path: "/file/d/" + id + "/view?sle=true",
|
||||||
port: 443
|
port: 443
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue