Small changes

This commit is contained in:
aleves64 2021-01-03 20:57:37 +02:00 committed by Calvin Montgomery
parent 18fd611c91
commit a8d9781821
4 changed files with 15201 additions and 3 deletions

15198
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@
"dependencies": {
"@calzoneman/express-babel-decorators": "^1.0.0",
"@calzoneman/jsli": "^2.0.1",
"@cytube/mediaquery": "0.0.24",
"@cytube/mediaquery": "0.0.25",
"bcrypt": "^5.0.0",
"bluebird": "^3.5.1",
"body-parser": "^1.18.2",

View File

@ -973,7 +973,7 @@ PlaylistModule.prototype._addItem = function (media, data, user, cb) {
}
}
if (media.meta.rating) {
if (media.meta.ytRating === "ytAgeRestricted") {
return qfail("Cannot add age restricted videos. See: https://github.com/calzoneman/sync/wiki/Frequently-Asked-Questions#why-dont-age-restricted-youtube-videos-work");
}

View File

@ -72,7 +72,7 @@ var Getters = {
meta.restricted = video.meta.blocked;
}
if (video.meta.ytRating) {
meta.rating = video.meta.ytRating;
meta.ytRating = video.meta.ytRating;
}
var media = new Media(video.id, video.title, video.duration, "yt", meta);