mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 03:59:38 +00:00
chore: add other InnerTube API urls
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
const Parser = require('..');
|
||||
const Text = require('./Text');
|
||||
const NavigationEndpoint = require('./NavigationEndpoint');
|
||||
|
||||
@@ -8,7 +7,7 @@ class CompactLink {
|
||||
type = 'CompactLink';
|
||||
|
||||
constructor(data) {
|
||||
this.title = new Text(data.title).toString();
|
||||
this.title = new Text(data.title).toString(); a
|
||||
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
|
||||
this.style = data.style;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
const Parser = require('..');
|
||||
const Text = require('./Text');
|
||||
const NavigationEndpoint = require('./NavigationEndpoint');
|
||||
|
||||
|
||||
@@ -7,7 +7,15 @@ module.exports = {
|
||||
YT_STUDIO_BASE_API: 'https://studio.youtube.com/youtubei/',
|
||||
YT_SUGGESTIONS: 'https://suggestqueries.google.com/complete/',
|
||||
YT_MUSIC: 'https://music.youtube.com',
|
||||
YT_MUSIC_BASE_API: 'https://music.youtube.com/youtubei/'
|
||||
YT_MUSIC_BASE_API: 'https://music.youtube.com/youtubei/',
|
||||
API: {
|
||||
PRODUCTION: 'https://youtubei.googleapis.com',
|
||||
STAGING: 'https://green-youtubei.sandbox.googleapis.com',
|
||||
RELEASE: 'https://release-youtubei.sandbox.googleapis.com',
|
||||
TEST: 'https://test-youtubei.sandbox.googleapis.com',
|
||||
CAMI: 'http://cami-youtubei.sandbox.googleapis.com',
|
||||
UYTFE: 'https://uytfe.sandbox.google.com'
|
||||
}
|
||||
},
|
||||
OAUTH: {
|
||||
SCOPE: 'http://gdata.youtube.com https://www.googleapis.com/auth/youtube-paid-content',
|
||||
|
||||
Reference in New Issue
Block a user