feat: implement Innertube#resolveURL(url) (#268)

This commit is contained in:
LuanRT
2022-12-31 18:35:55 -03:00
committed by GitHub
parent 1163125f5c
commit 5cfb969e33
5 changed files with 27 additions and 1 deletions

View File

@@ -148,6 +148,7 @@ export default class Parser {
hls_manifest_url: data.streamingData?.hlsManifestUrl as string || null
} : undefined,
current_video_endpoint: data.currentVideoEndpoint ? new NavigationEndpoint(data.currentVideoEndpoint) : null,
endpoint: data.endpoint ? new NavigationEndpoint(data.endpoint) : null,
captions: Parser.parseItem<PlayerCaptionsTracklist>(data.captions),
video_details: data.videoDetails ? new VideoDetails(data.videoDetails) : undefined,
annotations: Parser.parseArray<PlayerAnnotationsExpanded>(data.annotations),