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 0ed60af commit 1aee925
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/api/src/controllers/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +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 "non-existing-region";
const regionRegex =
/https?:\/\/(.+)-\w+-catalyst.+not-used-playback\/index.m3u8/;
const matches = playbackUrl.match(regionRegex);
Expand Down

0 comments on commit 1aee925

Please sign in to comment.