Skip to content

Commit

Permalink
chore: translated swedish code comments to english
Browse files Browse the repository at this point in the history
  • Loading branch information
ShibireX authored and birme committed May 20, 2023
1 parent 77d4e4f commit f0153a5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/manifests/handlers/dash/segment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default async function dashSegmentHandler(
/**
* #1 - const originalUrl = req.body.query("url");
* #2 - const originalManifest = await fetch(originalUrl);
* #3 - bygg proxy versionen och bygg responsen med rätt header
* #3 - build proxy version and response with the correct header
*/
const { url } = event.queryStringParameters;

Expand Down Expand Up @@ -86,7 +86,7 @@ export default async function dashSegmentHandler(
status: 500,
message: err.message ? err.message : err
};
//för oväntade fel
//for unexpected errors
return generateErrorResponse(errorRes);
}
}
2 changes: 1 addition & 1 deletion src/manifests/utils/corruptions/delay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface DelayConfig extends CorruptorConfig {
ms?: number;
}

// TODO:Flytta till en i en constants fil, och gruppera med and
// TODO: Move to a constants file and group with and
const delayExpectedQueryFormatMsg =
'Incorrect delay query format. Expected format: [{i?:number, sq?:number, br?:number, ms:number}, ...n] where i and sq are mutually exclusive.';

Expand Down
2 changes: 1 addition & 1 deletion src/manifests/utils/corruptions/statusCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { unparsableError } from '../../../shared/utils';
import { ServiceError, TargetIndex } from '../../../shared/types';
import { CorruptorConfig, SegmentCorruptorQueryConfig } from '../configs';

// TODO:Flytta till en i en constants fil, och gruppera med and
// TODO: Move to a constants file and group with and
const statusCodeExpectedQueryFormatMsg =
'Incorrect statusCode query format. Expected format: [{i?:number, sq?:number, br?:number, code:number}, ...n] where i and sq are mutually exclusive.';

Expand Down
2 changes: 1 addition & 1 deletion src/manifests/utils/corruptions/timeout.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ServiceError, TargetIndex } from '../../../shared/types';
import { CorruptorConfig, SegmentCorruptorQueryConfig } from '../configs';

// TODO:Flytta till en i en constants fil, och gruppera med and
// TODO: Move to a constants file and group with and
const timeoutExpectedQueryFormatMsg =
'Incorrect timeout query format. Expected format: [{i?:number, sq?:number, br?:number}, ...n] where i and sq are mutually exclusive.';

Expand Down
4 changes: 2 additions & 2 deletions src/manifests/utils/hlsManifestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export default function (): HLSManifestTools {
return m3u.toString();

//---------------------------------------------------------------
// TODO: *Specialfall*, cover fall där StreamItem.get('uri')
// är ett http://.... url, och inte en relativ
// TODO: *Edge case*, cover case where StreamItem.get('uri')
// is a http://.... url, and not a relative
//---------------------------------------------------------------
},
createProxyMediaManifest(
Expand Down

0 comments on commit f0153a5

Please sign in to comment.