mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 07:18:26 +01:00
add banned channels :3
This commit is contained in:
parent
05b753c210
commit
9c77e01076
1 changed files with 8 additions and 0 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue