import { expect } from 'chai'
import { decode } from 'magnet-uri'
-import { checkVideoFileTokenReinjection, expectStartWith } from '@server/tests/shared'
+import { checkVideoFileTokenReinjection, expectStartWith, parseTorrentVideo } from '@server/tests/shared'
import { getAllFiles, wait } from '@shared/core-utils'
import { HttpStatusCode, LiveVideo, VideoDetails, VideoPrivacy } from '@shared/models'
import {
createSingleServer,
findExternalSavedVideo,
makeRawRequest,
- parseTorrentVideo,
PeerTubeServer,
sendRTMPStream,
setAccessTokensToServers,
})
{
- const { video, live } = await server.live.quickCreate({ saveReplay: true, permanentLive: false, privacy: VideoPrivacy.PRIVATE })
+ const { video, live } = await server.live.quickCreate({
+ saveReplay: true,
+ permanentLive: false,
+ privacy: VideoPrivacy.PRIVATE
+ })
normalLiveId = video.uuid
normalLive = live
}
{
- const { video, live } = await server.live.quickCreate({ saveReplay: true, permanentLive: true, privacy: VideoPrivacy.PRIVATE })
+ const { video, live } = await server.live.quickCreate({
+ saveReplay: true,
+ permanentLive: true,
+ privacy: VideoPrivacy.PRIVATE
+ })
permanentLiveId = video.uuid
permanentLive = live
}