Small changes
This commit is contained in:
parent
18fd611c91
commit
a8d9781821
4 changed files with 15201 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue