2 import { HttpStatusCode } from '../../core-utils/miscs/http-error-codes'
3 import { unwrapBody, unwrapText } from '../requests'
4 import { AbstractCommand, OverrideCommandOptions } from '../shared'
6 export class StreamingPlaylistsCommand extends AbstractCommand {
8 get (options: OverrideCommandOptions & {
11 return unwrapText(this.getRawRequest({
16 defaultExpectedStatus: HttpStatusCode.OK_200
20 getSegment (options: OverrideCommandOptions & {
24 return unwrapText(this.getRawRequest({
30 defaultExpectedStatus: HttpStatusCode.OK_200
34 getSegmentSha256 (options: OverrideCommandOptions & {
37 return unwrapBody<{ [ id: string ]: string }>(this.getRawRequest({
42 defaultExpectedStatus: HttpStatusCode.OK_200