mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-01-06 01:20:27 +05:30
Support for YouTube handles
This commit is contained in:
parent
de2544f5f2
commit
cf0dda3a48
@ -121,7 +121,9 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
async fetchChannel() {
|
async fetchChannel() {
|
||||||
const url = this.apiUrl() + "/" + this.$route.params.path + "/" + this.$route.params.channelId;
|
const url = this.$route.path.includes("@")
|
||||||
|
? this.apiUrl() + "/c/" + this.$route.params.channelId
|
||||||
|
: this.apiUrl() + "/" + this.$route.params.path + "/" + this.$route.params.channelId;
|
||||||
return await this.fetchJson(url);
|
return await this.fetchJson(url);
|
||||||
},
|
},
|
||||||
async getChannelData() {
|
async getChannelData() {
|
||||||
|
@ -41,6 +41,11 @@ const routes = [
|
|||||||
name: "Channel",
|
name: "Channel",
|
||||||
component: () => import("../components/ChannelPage.vue"),
|
component: () => import("../components/ChannelPage.vue"),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/@:channelId",
|
||||||
|
name: "Channel handle",
|
||||||
|
component: () => import("../components/ChannelPage.vue"),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "/login",
|
path: "/login",
|
||||||
name: "Login",
|
name: "Login",
|
||||||
|
Loading…
Reference in New Issue
Block a user