mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 12:07:07 +03:00
private video?
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user