X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Flive.ts;h=81008f120d213cdb5b9975b9c3958d0e4e2a2ea4;hb=1cc9774668827c1255e4cd0775cb781c7f73051c;hp=cfb4741b727c3c9cfac23a55393569213a61c462;hpb=76148b27f7501bac061992136852be4303370c8d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/live.ts b/server/controllers/live.ts index cfb4741b7..81008f120 100644 --- a/server/controllers/live.ts +++ b/server/controllers/live.ts @@ -1,8 +1,8 @@ -import * as cors from 'cors' -import * as express from 'express' +import cors from 'cors' +import express from 'express' import { mapToJSON } from '@server/helpers/core-utils' -import { LiveManager } from '@server/lib/live-manager' -import { HttpStatusCode } from '@shared/core-utils/miscs/http-error-codes' +import { LiveSegmentShaStore } from '@server/lib/live' +import { HttpStatusCode } from '@shared/models' const liveRouter = express.Router() @@ -22,7 +22,7 @@ export { function getSegmentsSha256 (req: express.Request, res: express.Response) { const videoUUID = req.params.videoUUID - const result = LiveManager.Instance.getSegmentsSha256(videoUUID) + const result = LiveSegmentShaStore.Instance.getSegmentsSha256(videoUUID) if (!result) { return res.status(HttpStatusCode.NOT_FOUND_404).end()