1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 05:54:42 -05:00

add pronoun support :3

This commit is contained in:
Ashley //// 2024-04-02 21:44:19 +00:00
parent 1c94951b92
commit ff19f082ee

View file

@ -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,