AAAAAAAAAAAAAAAA
This commit is contained in:
parent
31ebfaaa3a
commit
0da18c1feb
8
index.ts
8
index.ts
|
@ -108,9 +108,7 @@ app.get('/channel/:id', async (req, res) => {
|
||||||
app.get('/videos/:id', async (req, res) => {
|
app.get('/videos/:id', async (req, res) => {
|
||||||
try {
|
try {
|
||||||
const videos = [];
|
const videos = [];
|
||||||
const yt = await Innertube.create({
|
const yt = await Innertube.create();
|
||||||
player_id: '0004de42'
|
|
||||||
});
|
|
||||||
const channel = await yt.getChannel(req.params.id);
|
const channel = await yt.getChannel(req.params.id);
|
||||||
let json = await channel.getVideos();
|
let json = await channel.getVideos();
|
||||||
|
|
||||||
|
@ -134,9 +132,7 @@ app.get('/videos/:id', async (req, res) => {
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
app.ws('/download/:id', async (ws, req) => {
|
app.ws('/download/:id', async (ws, req) => {
|
||||||
const yt = await Innertube.create({
|
const yt = await Innertube.create();
|
||||||
player_id: '0004de42'
|
|
||||||
});
|
|
||||||
let quality = '480p'
|
let quality = '480p'
|
||||||
|
|
||||||
const info = await yt.getInfo(req.params.id, {
|
const info = await yt.getInfo(req.params.id, {
|
||||||
|
|
Loading…
Reference in New Issue