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 = {