From 13321888e829884b4e9a22e2a04a62b30b88808b Mon Sep 17 00:00:00 2001 From: LuanRT Date: Mon, 29 Apr 2024 08:05:59 -0300 Subject: [PATCH] chore(PlayerEndpoint): Remove outdated code --- src/core/endpoints/PlayerEndpoint.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/core/endpoints/PlayerEndpoint.ts b/src/core/endpoints/PlayerEndpoint.ts index f8d0d0456..98de106db 100644 --- a/src/core/endpoints/PlayerEndpoint.ts +++ b/src/core/endpoints/PlayerEndpoint.ts @@ -1,4 +1,3 @@ -import { encodeShortsParam } from '../../proto/index.js'; import type { IPlayerRequest, PlayerEndpointOptions } from '../../types/index.js'; export const PATH = '/player'; @@ -9,11 +8,6 @@ export const PATH = '/player'; * @returns The payload. */ export function build(opts: PlayerEndpointOptions): IPlayerRequest { - const is_android = - opts.client === 'ANDROID' || - opts.client === 'YTMUSIC_ANDROID' || - opts.client === 'YTSTUDIO_ANDROID'; - return { playbackContext: { contentPlaybackContext: { @@ -43,8 +37,7 @@ export function build(opts: PlayerEndpointOptions): IPlayerRequest { ...{ client: opts.client, playlistId: opts.playlist_id, - // Workaround streaming URLs returning 403 or getting throttled when using Android based clients. - params: is_android ? encodeShortsParam() : opts.params + params: opts.params } }; } \ No newline at end of file