Fix google docs autorefresh

This commit is contained in:
Calvin Montgomery 2014-05-22 20:04:43 -07:00
parent 738dd3fb75
commit ca5ad87414
2 changed files with 2 additions and 2 deletions

View file

@ -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();

View file

@ -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
}; };