Support /e/ redirection

This commit is contained in:
Cadence Ember 2021-02-22 23:33:32 +13:00
parent 39c3c28bc2
commit 2f2cebfc7d
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17
1 changed files with 1 additions and 1 deletions

View File

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