Compare commits

..

1 Commits

Author SHA1 Message Date
LuanRT
37e9987afd chore: v5.0.3 release 2023-05-03 22:48:00 +00:00
4 changed files with 9 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "youtubei.js",
"version": "5.0.2",
"version": "5.0.3",
"description": "A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).",
"type": "module",
"types": "./dist/src/platform/lib.d.ts",

View File

@@ -28,6 +28,9 @@ export function build(opts: PlayerEndpointOptions): IPlayerRequest {
}
}
},
attestationRequest: {
omitBotguardData: true
},
racyCheckOk: true,
contentCheckOk: true,
videoId: opts.video_id,

View File

@@ -53,7 +53,7 @@ export default class Video extends YTNode {
this.description_snippet = new Text(data.descriptionSnippet);
}
if (Reflect.has(data, 'detaildMetadataSnippets')) {
if (Reflect.has(data, 'detailedMetadataSnippets')) {
this.snippets = data.detailedMetadataSnippets.map((snippet: RawNode) => ({
text: new Text(snippet.snippetText),
hover_text: new Text(snippet.snippetHoverText)
@@ -127,4 +127,4 @@ export default class Video extends YTNode {
get best_thumbnail(): Thumbnail | undefined {
return this.thumbnails[0];
}
}
}

View File

@@ -20,6 +20,9 @@ export interface IPlayerRequest {
lactMilliseconds: string;
}
},
attestationRequest: {
omitBotguardData: boolean;
},
videoId: string;
racyCheckOk: boolean;
contentCheckOk: boolean;