From 2fb3d0505557fa59fa8a30eb2736dd7720e29eb7 Mon Sep 17 00:00:00 2001 From: Ajay Date: Wed, 24 Jul 2024 13:06:19 -0400 Subject: [PATCH] private video? --- src/utils/innerTubeAPI.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/innerTubeAPI.ts b/src/utils/innerTubeAPI.ts index 2fe0b46..c38dae9 100644 --- a/src/utils/innerTubeAPI.ts +++ b/src/utils/innerTubeAPI.ts @@ -5,7 +5,7 @@ import DiskCache from "./diskCache"; const privateResponse = (videoId: string): innerTubeVideoDetails => ({ videoId, - title: "", + title: "Private video?", channelId: "", // exclude video duration isOwnerViewing: false, @@ -27,7 +27,7 @@ const privateResponse = (videoId: string): innerTubeVideoDetails => ({ publishDate: "" }); -async function getFromITube (videoID: string): Promise { +export async function getFromITube (videoID: string): Promise { // start subrequest const url = "https://www.youtube.com/youtubei/v1/player"; const data = {