From ff19f082eefc315e61b586ac41f50a88124bb600 Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Tue, 2 Apr 2024 21:44:19 +0000 Subject: [PATCH] add pronoun support :3 --- src/libpoketube/init/pages-channel-and-download.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libpoketube/init/pages-channel-and-download.js b/src/libpoketube/init/pages-channel-and-download.js index a170242e..b25f255b 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -306,6 +306,8 @@ module.exports = function (app, config, renderTemplate) { )}/${ID}/?hl=en-US`; const channelINVUrl = `${apiUrl}${ID}/`; + const checkPronoun = async (id) => (await (await fetch('https://codeberg.org/ashley/poke-pronouns-db/raw/branch/main/pronouns.json')).json())[id] || `no pronouns set`; + const pronoun = await checkPronoun(ID); var [tj, shorts, playlist, stream, c, cinv] = await Promise.all([ getChannelData(channelUrl), @@ -364,6 +366,7 @@ module.exports = function (app, config, renderTemplate) { cinv, convert, turntomins, + pronoun, media_proxy_url: media_proxy, dnoreplace, getThumbnailUrl,