mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 04:17:47 +01:00
Update src/libpoketube/init/pages-channel-and-download.js
This commit is contained in:
parent
9c77e01076
commit
c53d1a57c9
1 changed files with 14 additions and 5 deletions
|
@ -269,13 +269,22 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
getChannelData(channelINVUrl),
|
getChannelData(channelINVUrl),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
var bannedchannels = ["UC1okSIA8UEY8OqvtjGHFvzA"]
|
|
||||||
|
|
||||||
if(ID.includes(bannedchannels)) {
|
var bannedchannels = ["UC1okSIA8UEY8OqvtjGHFvzA"];
|
||||||
var cinv = {
|
var bypassQuery = "cG9rZXR1YmVjaGFubmVsYnlwYXNzbG9scGVvcGxldGhpbmt0aGlzaXNjZW5zb3JzaGlwLTQ1OTBh";
|
||||||
error: "banned from poke for violating code of conduct. you can still watch content but u cant view the channel itself!"
|
|
||||||
|
var bypassExists = req.query.bypass === bypassQuery;
|
||||||
|
var tabExists = 'tab' in req.query;
|
||||||
|
var continuationExists = 'continuation' in req.query;
|
||||||
|
|
||||||
|
|
||||||
|
if (ID.includes(bannedchannels) && !bypassExists && !tabExists && !continuationExists) {
|
||||||
|
var cinv = {
|
||||||
|
error = `this channel was banned for violating the code of conduct. You can still watch content but cannot view the channel itself. If you still wanna view content <a href="?bypass=${bypassQuery}">click here</a> to bypass this restriction.`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function getThumbnailUrl(video) {
|
function getThumbnailUrl(video) {
|
||||||
const maxresDefaultThumbnail = video.videoThumbnails.find(
|
const maxresDefaultThumbnail = video.videoThumbnails.find(
|
||||||
|
|
Loading…
Reference in a new issue