From 2f2cebfc7d51e958031c7a7cf4934ddaf6e0a223 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Mon, 22 Feb 2021 23:33:32 +1300 Subject: [PATCH] Support /e/ redirection --- api/redirects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/redirects.js b/api/redirects.js index 733cd6c..90c52a9 100644 --- a/api/redirects.js +++ b/api/redirects.js @@ -3,7 +3,7 @@ const {redirect} = require("pinski/plugins") module.exports = [ { - route: `/(?:watch/|w/|v/|shorts/)?(${constants.regex.video_id})`, priority: -1, methods: ["GET"], code: async ({fill, url}) => { + route: `/(?:watch/|w/|v/|shorts/|e/)?(${constants.regex.video_id})`, priority: -1, methods: ["GET"], code: async ({fill, url}) => { /* Why not URLSearchParams? URLSearchParams is an unordered map, and URLs are more