From 71e3e879c0616882ee82a0e44f8c2e5ee9698a3e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 2 Dec 2022 14:47:21 +0100 Subject: Support reinjecting token in private m3u8 playlist --- shared/server-commands/videos/streaming-playlists-command.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'shared/server-commands/videos') diff --git a/shared/server-commands/videos/streaming-playlists-command.ts b/shared/server-commands/videos/streaming-playlists-command.ts index 25e446e72..26ab2735f 100644 --- a/shared/server-commands/videos/streaming-playlists-command.ts +++ b/shared/server-commands/videos/streaming-playlists-command.ts @@ -7,16 +7,24 @@ export class StreamingPlaylistsCommand extends AbstractCommand { async get (options: OverrideCommandOptions & { url: string + + videoFileToken?: string + reinjectVideoFileToken?: boolean + withRetry?: boolean // default false currentRetry?: number }) { - const { withRetry, currentRetry = 1 } = options + const { videoFileToken, reinjectVideoFileToken, withRetry, currentRetry = 1 } = options try { const result = await unwrapTextOrDecode(this.getRawRequest({ ...options, url: options.url, + query: { + videoFileToken, + reinjectVideoFileToken + }, implicitToken: false, defaultExpectedStatus: HttpStatusCode.OK_200 })) -- cgit v1.2.3