add banned channels :3

This commit is contained in:
ashley 2024-08-17 18:40:21 +00:00
parent 05b753c210
commit 9c77e01076

View file

@ -269,6 +269,14 @@ module.exports = function (app, config, renderTemplate) {
getChannelData(channelINVUrl), getChannelData(channelINVUrl),
]); ]);
var bannedchannels = ["UC1okSIA8UEY8OqvtjGHFvzA"]
if(ID.includes(bannedchannels)) {
var cinv = {
error: "banned from poke for violating code of conduct. you can still watch content but u cant view the channel itself!"
}
}
function getThumbnailUrl(video) { function getThumbnailUrl(video) {
const maxresDefaultThumbnail = video.videoThumbnails.find( const maxresDefaultThumbnail = video.videoThumbnails.find(
(thumbnail) => thumbnail.quality === "maxresdefault" (thumbnail) => thumbnail.quality === "maxresdefault"