diff --git a/src/utils/innerTubeAPI.ts b/src/utils/innerTubeAPI.ts index c38dae9..1d75ccc 100644 --- a/src/utils/innerTubeAPI.ts +++ b/src/utils/innerTubeAPI.ts @@ -3,9 +3,9 @@ import { Logger } from "./logger"; import { innerTubeVideoDetails } from "../types/innerTubeApi.model"; import DiskCache from "./diskCache"; -const privateResponse = (videoId: string): innerTubeVideoDetails => ({ +const privateResponse = (videoId: string, reason: string): innerTubeVideoDetails => ({ videoId, - title: "Private video?", + title: reason, channelId: "", // exclude video duration isOwnerViewing: false, @@ -44,7 +44,7 @@ export async function getFromITube (videoID: string): Promise