mirror of https://github.com/calzoneman/sync.git
Small changes
This commit is contained in:
parent
18fd611c91
commit
a8d9781821
File diff suppressed because it is too large
Load Diff
|
@ -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",
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue