diff --git a/NEWS.md b/NEWS.md index 34dd755d..c18ef21d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 ========== diff --git a/gdrive-userscript/cytube-google-drive.user.js b/gdrive-userscript/cytube-google-drive.user.js index 88a24a6f..2d094956 100644 --- a/gdrive-userscript/cytube-google-drive.user.js +++ b/gdrive-userscript/cytube-google-drive.user.js @@ -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); } diff --git a/package.json b/package.json index 9cbf6187..d30f43f4 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/www/js/util.js b/www/js/util.js index 84125774..a2f7760d 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -3215,7 +3215,7 @@ function maybePromptToUpgradeUserscript() { return; } - var currentVersion = [1, 2]; + var currentVersion = [1, 3]; var userscriptVersion = window.driveUserscriptVersion; if (!userscriptVersion) { userscriptVersion = '1.0';