mirror of https://github.com/calzoneman/sync.git
Clarify gdrive userscript error when fmt_stream_map is missing
This commit is contained in:
parent
fa74ee0538
commit
0b6106a89e
|
@ -8,7 +8,7 @@
|
|||
// @grant GM.xmlHttpRequest
|
||||
// @connect docs.google.com
|
||||
// @run-at document-end
|
||||
// @version 1.6.0
|
||||
// @version 1.7.0
|
||||
// ==/UserScript==
|
||||
|
||||
try {
|
||||
|
@ -100,8 +100,11 @@ try {
|
|||
}
|
||||
|
||||
if (!data.fmt_stream_map) {
|
||||
error = 'Google Drive request failed: ' +
|
||||
'metadata lookup returned no valid links';
|
||||
error = (
|
||||
'Google has removed the video streams associated' +
|
||||
' with this item. It can no longer be played.'
|
||||
);
|
||||
|
||||
return cb(error);
|
||||
}
|
||||
|
||||
|
@ -234,7 +237,7 @@ try {
|
|||
unsafeWindow.console.log('Initialized userscript Google Drive player');
|
||||
unsafeWindow.hasDriveUserscript = true;
|
||||
// Checked against GS_VERSION from data.js
|
||||
unsafeWindow.driveUserscriptVersion = '1.6';
|
||||
unsafeWindow.driveUserscriptVersion = '1.7';
|
||||
} catch (error) {
|
||||
unsafeWindow.console.error(error);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"author": "Calvin Montgomery",
|
||||
"name": "CyTube",
|
||||
"description": "Online media synchronizer and chat",
|
||||
"version": "3.51.14",
|
||||
"version": "3.51.15",
|
||||
"repository": {
|
||||
"url": "http://github.com/calzoneman/sync"
|
||||
},
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
var CL_VERSION = 3.0;
|
||||
var GS_VERSION = 1.6; // Google Drive Userscript
|
||||
var GS_VERSION = 1.7; // Google Drive Userscript
|
||||
|
||||
var CLIENT = {
|
||||
rank: -1,
|
||||
|
|
Loading…
Reference in New Issue