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

@@ -143,6 +143,11 @@ export default class HTTPClient {
ctx.client.clientName = Constants.CLIENTS.YTMUSIC_ANDROID.NAME;
ctx.client.androidSdkVersion = Constants.CLIENTS.ANDROID.SDK_VERSION;
break;
case 'TV_EMBEDDED':
ctx.client.clientVersion = Constants.CLIENTS.TV_EMBEDDED.VERSION;
ctx.client.clientName = Constants.CLIENTS.TV_EMBEDDED.NAME;
ctx.client.clientScreen = 'EMBED';
break;
default:
break;
}