private video?

This commit is contained in:
Ajay 2024-07-24 13:06:19 -04:00
parent 165ed8a6e0
commit 2fb3d05055

View file

@ -5,7 +5,7 @@ import DiskCache from "./diskCache";
const privateResponse = (videoId: string): innerTubeVideoDetails => ({ const privateResponse = (videoId: string): innerTubeVideoDetails => ({
videoId, videoId,
title: "", title: "Private video?",
channelId: "", channelId: "",
// exclude video duration // exclude video duration
isOwnerViewing: false, isOwnerViewing: false,
@ -27,7 +27,7 @@ const privateResponse = (videoId: string): innerTubeVideoDetails => ({
publishDate: "" publishDate: ""
}); });
async function getFromITube (videoID: string): Promise<innerTubeVideoDetails> { export async function getFromITube (videoID: string): Promise<innerTubeVideoDetails> {
// start subrequest // start subrequest
const url = "https://www.youtube.com/youtubei/v1/player"; const url = "https://www.youtube.com/youtubei/v1/player";
const data = { const data = {