1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Use a single file instead of segments for HLS

This commit is contained in:
Chocobozzz 2019-02-07 15:08:19 +01:00 committed by Chocobozzz
parent 6ec0b75beb
commit 4c280004ce
16 changed files with 189 additions and 146 deletions

View file

@ -355,10 +355,10 @@ async function fetchRemoteActor (actorUrl: string): Promise<{ statusCode?: numbe
logger.info('Fetching remote actor %s.', actorUrl)
const requestResult = await doRequest(options)
const requestResult = await doRequest<ActivityPubActor>(options)
normalizeActor(requestResult.body)
const actorJSON: ActivityPubActor = requestResult.body
const actorJSON = requestResult.body
if (isActorObjectValid(actorJSON) === false) {
logger.debug('Remote actor JSON is not valid.', { actorJSON })
return { result: undefined, statusCode: requestResult.response.statusCode }