mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 18:17:49 +01:00
Update src/libpoketube/init/pages-video.js
This commit is contained in:
parent
c89ba51f57
commit
1d2fdc3ea2
1 changed files with 3 additions and 0 deletions
|
@ -169,6 +169,7 @@ const CORD_REGEX = /https:\/\/discord.gg\/(?<name>[\w\d_-]+)/;
|
|||
const TWITCH_REGEX = /https:\/\/twitch.tv\/(?<name>[\w\d_-]+)/;
|
||||
const REDDIT_REGEX = /https:\/\/reddit\.com\/r\/(?<name>[\w\d_-]+)/;
|
||||
const INSTAGRAM_REGEX = /https:\/\/www.instagram.com\/(?<name>[\w\d_-]+)/;
|
||||
const LNKTO_REGEX = /https:\/\/(?:www\.)?\w+\.lnk\.to\/(?<path>\S*)/;
|
||||
|
||||
module.exports = function (app, config, renderTemplate) {
|
||||
app.get("/encryption", async function (req, res) {
|
||||
|
@ -236,6 +237,7 @@ module.exports = function (app, config, renderTemplate) {
|
|||
|
||||
const support = extractInfo(PATREON_REGEX);
|
||||
const twitter = extractInfo(X_REGEX);
|
||||
const linkto = extractInfo(LNKTO_REGEX);
|
||||
const discord = extractInfo(CORD_REGEX);
|
||||
const twitch = extractInfo(TWITCH_REGEX);
|
||||
const reddit = extractInfo(REDDIT_REGEX);
|
||||
|
@ -306,6 +308,7 @@ module.exports = function (app, config, renderTemplate) {
|
|||
color2: data.color2,
|
||||
linkify,
|
||||
engagement,
|
||||
linkto,
|
||||
IsOldWindows,
|
||||
channelurlfixer,
|
||||
itag_hd,
|
||||
|
|
Loading…
Reference in a new issue