mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-10-13 19:08:22 +00:00
Add support for youtu.be 11 character redirects.
This commit is contained in:
@@ -23,10 +23,12 @@ const routes = [
|
||||
},
|
||||
{
|
||||
path: "/:path(v|w|embed|shorts|watch)/:v?",
|
||||
name: "WatchVideo",
|
||||
component: () => import("../components/WatchVideo.vue"),
|
||||
},
|
||||
{
|
||||
path: "/:path(channel|user|c)/:channelId/:videos?",
|
||||
name: "Channel",
|
||||
component: () => import("../components/Channel.vue"),
|
||||
},
|
||||
{
|
||||
@@ -49,6 +51,10 @@ const routes = [
|
||||
name: "Import",
|
||||
component: () => import("../components/ImportPage.vue"),
|
||||
},
|
||||
{
|
||||
path: "/:videoId([a-zA-Z0-9_-]{11})",
|
||||
component: () => import("../components/VideoRedirect.vue"),
|
||||
},
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
|
Reference in New Issue
Block a user