X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=shared%2Fserver-commands%2Fvideos%2Fstreaming-playlists-command.ts;fp=shared%2Fserver-commands%2Fvideos%2Fstreaming-playlists-command.ts;h=26ab2735fd33338ef19733e5c8bf6493506f35c9;hb=71e3e879c0616882ee82a0e44f8c2e5ee9698a3e;hp=25e446e729b2c55c3a65c0d5536114286454d6de;hpb=04509c43254dc232c61681ac4bb98e09fd126115;p=github%2FChocobozzz%2FPeerTube.git 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 }))