From ca5ad87414a893a9722a3e2f4597687760b2b9de Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Thu, 22 May 2014 20:04:43 -0700 Subject: [PATCH] Fix google docs autorefresh --- lib/channel/playlist.js | 2 +- lib/get-info.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/channel/playlist.js b/lib/channel/playlist.js index 67d60b65..ff9a303c 100644 --- a/lib/channel/playlist.js +++ b/lib/channel/playlist.js @@ -1031,7 +1031,7 @@ PlaylistModule.prototype.refreshGoogleDocs = function (cb) { InfoGetter.getMedia(this.current.media.id, "gd", function (err, media) { if (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; cb && cb(); self.channel.activeLock.release(); diff --git a/lib/get-info.js b/lib/get-info.js index 1ec6bcfe..882ee3b3 100644 --- a/lib/get-info.js +++ b/lib/get-info.js @@ -683,7 +683,7 @@ var Getters = { /* WARNING: hacks inbound */ var options = { host: "docs.google.com", - path: "/file/d/" + id + "/edit", + path: "/file/d/" + id + "/view?sle=true", port: 443 };