mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-09-19 20:51:19 +02:00
private video?
This commit is contained in:
parent
165ed8a6e0
commit
2fb3d05055
1 changed files with 2 additions and 2 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue