diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 09:47:51 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 254d3579f5338f5fd775c17d15cdfc37078bcfb4 (patch) | |
tree | eaeb13fda16c16e98cd6991d202b0ca6a4cbdb63 /shared/extra-utils/videos/streaming-playlists.ts | |
parent | 89d241a79c262b9775c233b73cff080043ebb5e6 (diff) | |
download | PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.gz PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.zst PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.zip |
Use an object to represent a server
Diffstat (limited to 'shared/extra-utils/videos/streaming-playlists.ts')
-rw-r--r-- | shared/extra-utils/videos/streaming-playlists.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shared/extra-utils/videos/streaming-playlists.ts b/shared/extra-utils/videos/streaming-playlists.ts index e8fd2f232..002ae08b2 100644 --- a/shared/extra-utils/videos/streaming-playlists.ts +++ b/shared/extra-utils/videos/streaming-playlists.ts | |||
@@ -2,10 +2,10 @@ import { expect } from 'chai' | |||
2 | import { sha256 } from '@server/helpers/core-utils' | 2 | import { sha256 } from '@server/helpers/core-utils' |
3 | import { HttpStatusCode } from '@shared/core-utils' | 3 | import { HttpStatusCode } from '@shared/core-utils' |
4 | import { VideoStreamingPlaylist } from '@shared/models' | 4 | import { VideoStreamingPlaylist } from '@shared/models' |
5 | import { ServerInfo } from '../server' | 5 | import { PeerTubeServer } from '../server' |
6 | 6 | ||
7 | async function checkSegmentHash (options: { | 7 | async function checkSegmentHash (options: { |
8 | server: ServerInfo | 8 | server: PeerTubeServer |
9 | baseUrlPlaylist: string | 9 | baseUrlPlaylist: string |
10 | baseUrlSegment: string | 10 | baseUrlSegment: string |
11 | videoUUID: string | 11 | videoUUID: string |
@@ -36,7 +36,7 @@ async function checkSegmentHash (options: { | |||
36 | } | 36 | } |
37 | 37 | ||
38 | async function checkLiveSegmentHash (options: { | 38 | async function checkLiveSegmentHash (options: { |
39 | server: ServerInfo | 39 | server: PeerTubeServer |
40 | baseUrlSegment: string | 40 | baseUrlSegment: string |
41 | videoUUID: string | 41 | videoUUID: string |
42 | segmentName: string | 42 | segmentName: string |
@@ -52,7 +52,7 @@ async function checkLiveSegmentHash (options: { | |||
52 | } | 52 | } |
53 | 53 | ||
54 | async function checkResolutionsInMasterPlaylist (options: { | 54 | async function checkResolutionsInMasterPlaylist (options: { |
55 | server: ServerInfo | 55 | server: PeerTubeServer |
56 | playlistUrl: string | 56 | playlistUrl: string |
57 | resolutions: number[] | 57 | resolutions: number[] |
58 | }) { | 58 | }) { |