feat: add TVHTML5_SIMPLY_EMBEDDED_PLAYER client (#193)

* feat: add `TV_EMBEDDED` client

See #191, this should help bypassing some age restricted videos.

* dev(VideoInfo): update format options interface

* dev: set `clientScreen` to `EMBED`

* dev: update API ref

* dev: update `Context` interface
This commit is contained in:
LuanRT
2022-09-17 19:15:20 -03:00
committed by GitHub
parent dcf2b720a0
commit 2e5688f235
6 changed files with 16 additions and 6 deletions

View File

@@ -46,9 +46,9 @@ export interface FormatOptions {
*/
format?: string;
/**
* InnerTube client, can be ANDROID, WEB or YTMUSIC
* InnerTube client, can be ANDROID, WEB, YTMUSIC, YTMUSIC_ANDROID or TV_EMBEDDED
*/
client?: 'ANDROID' | 'WEB' | 'YTMUSIC'
client?: 'ANDROID' | 'WEB' | 'YTMUSIC' | 'YTMUSIC_ANDROID' | 'TV_EMBEDDED'
}
export interface DownloadOptions extends FormatOptions {