Permalink
Browse files

Fix Google Drive URL

  • Loading branch information...
1 parent 3c11ac6 commit afa18c47495838b2d02449d7ca546ec40092d82b @calzoneman committed Oct 21, 2016
Showing with 20 additions and 5 deletions.
  1. +12 −0 NEWS.md
  2. +6 −3 gdrive-userscript/cytube-google-drive.user.js
  3. +1 −1 package.json
  4. +1 −1 www/js/util.js
View
@@ -1,3 +1,15 @@
+2016-10-20
+==========
+
+Google Drive changed the URL schema for retrieving video metadata, which broke
+CyTube's Google Drive support, even with the userscript. I have updated the
+userscript source with the new URL, so server administrators will have to
+regenerate the userscript for their site and users will be prompted to install
+the newer version.
+
+Additionally, fixing Drive lookups required an update to the `mediaquery`
+module, so you will have to do an `npm install` to pull that fix in.
+
2016-08-23
==========
@@ -7,7 +7,7 @@
// @grant GM_xmlhttpRequest
// @connect docs.google.com
// @run-at document-end
-// @version 1.2.0
+// @version 1.3.0
// ==/UserScript==
try {
@@ -50,7 +50,10 @@ try {
};
function getVideoInfo(id, cb) {
- var url = 'https://docs.google.com/file/d/' + id + '/get_video_info';
+ var url = 'https://docs.google.com/get_video_info?authuser='
+ + '&docid=' + id
+ + '&sle=true'
+ + '&hl=en';
debug('Fetching ' + url);
GM_xmlhttpRequest({
@@ -201,7 +204,7 @@ try {
unsafeWindow.console.log('Initialized userscript Google Drive player');
unsafeWindow.hasDriveUserscript = true;
- unsafeWindow.driveUserscriptVersion = '1.2';
+ unsafeWindow.driveUserscriptVersion = '1.3';
} catch (error) {
unsafeWindow.console.error(error);
}
View
@@ -2,7 +2,7 @@
"author": "Calvin Montgomery",
"name": "CyTube",
"description": "Online media synchronizer and chat",
- "version": "3.23.4",
+ "version": "3.23.5",
"repository": {
"url": "http://github.com/calzoneman/sync"
},
View
@@ -3215,7 +3215,7 @@ function maybePromptToUpgradeUserscript() {
return;
}
- var currentVersion = [1, 2];
+ var currentVersion = [1, 3];
var userscriptVersion = window.driveUserscriptVersion;
if (!userscriptVersion) {
userscriptVersion = '1.0';

0 comments on commit afa18c4

Please sign in to comment.