Fix titles and error messages

This commit is contained in:
calzoneman 2015-02-20 23:11:09 -06:00
parent ad13896739
commit c9025fbb44
1 changed files with 7 additions and 1 deletions

View File

@ -710,9 +710,11 @@ var Getters = {
}
try {
var data = {};
res.split("&").forEach(function (urlparam) {
var pair = urlparam.split("=").map(decodeURIComponent);
var pair = urlparam.split("=").map(decodeURIComponent).map(
function (s) { return s.replace(/\+/g, ' '); });
data[pair[0]] = pair[1];
});
@ -721,8 +723,12 @@ var Getters = {
if (reason.indexOf("Unable to play this video at this time.") === 0) {
reason = "There is currently a bug with Google Drive which prevents playback " +
"of videos 1 hour long or longer.";
} else if (reason.indexOf(
"You must be signed in to access this video") >= 0) {
reason = "This video is not shared properly";
}
return callback(reason);
}