diff --git a/src/channel/playlist.js b/src/channel/playlist.js index 96ca8391..b2328353 100644 --- a/src/channel/playlist.js +++ b/src/channel/playlist.js @@ -973,6 +973,10 @@ PlaylistModule.prototype._addItem = function (media, data, user, cb) { } } + if (media.meta.rating) { + return qfail("Cannot add age restricted videos because google sucks"); + } + /* Warn about blocked countries */ if (media.meta.restricted) { user.socket.emit("queueWarn", { diff --git a/src/get-info.js b/src/get-info.js index dce6de4a..4e638469 100644 --- a/src/get-info.js +++ b/src/get-info.js @@ -71,6 +71,9 @@ var Getters = { if (video.meta.blocked) { meta.restricted = video.meta.blocked; } + if (video.meta.ytRating) { + meta.rating = video.meta.ytRating; + } var media = new Media(video.id, video.title, video.duration, "yt", meta); callback(false, media);