Skip to content

Commit

Permalink
Hardcode region to "non-existing-region" for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
leszko committed Apr 15, 2024
1 parent 08ad0b3 commit 1e7de67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/controllers/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ async function resolvePullRegion(

// Extracts region from redirected node URL, e.g. "sto" from "https://sto-prod-catalyst-0.lp-playback.studio:443/hls/video+foo/index.m3u8"
export function extractRegionFrom(playbackUrl: string): string {
return "fra-staging";
return "non-existing-region";
const regionRegex =
/https?:\/\/(.+)-\w+-catalyst.+not-used-playback\/index.m3u8/;
const matches = playbackUrl.match(regionRegex);
Expand Down

0 comments on commit 1e7de67

Please sign in to comment.