mirror of
https://github.com/LuanRT/googlevideo.git
synced 2026-07-03 09:35:00 +00:00
chore(examples): lint
This commit is contained in:
@@ -40,8 +40,8 @@ const headers = [
|
||||
name: 'X-Goog-Visitor-Id',
|
||||
value: innertube.session.context.client.visitorData
|
||||
}
|
||||
]
|
||||
;
|
||||
];
|
||||
|
||||
const videoId = 'JAs6WyK-Kr0';
|
||||
|
||||
const playerRequest = {
|
||||
@@ -57,7 +57,7 @@ playerRequest.context.client.clientName = 'TVHTML5';
|
||||
playerRequest.context.client.clientVersion = '7.20240717.18.00';
|
||||
|
||||
const onesieRequest = Protos.OnesieRequest.encode({
|
||||
url: 'https://youtubei.googleapis.com/youtubei/v1/next?key=AIzaSyDCU8hByM-4DrUqRUYnGn-3llEO78bcxq8',
|
||||
url: 'https://youtubei.googleapis.com/youtubei/v1/player?key=AIzaSyDCU8hByM-4DrUqRUYnGn-3llEO78bcxq8',
|
||||
headers,
|
||||
body: JSON.stringify(playerRequest),
|
||||
field4: false,
|
||||
@@ -189,4 +189,4 @@ if (onesiePlayerResponse) {
|
||||
|
||||
console.log('Player response:', playerResponse);
|
||||
console.log('Deciphered audio URL:', playerResponse.streaming_data?.adaptive_formats.find((fmt) => fmt.has_audio)?.decipher(innertube.session.player));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user