Skip to content

Commit

Permalink
fix: replaces dash with forward slash in url
Browse files Browse the repository at this point in the history
  • Loading branch information
zapfire88 committed Feb 20, 2024
1 parent e357fde commit 1dc8f20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/manifests/handlers/dash/segment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default async function dashSegmentHandler(
// segment templates may contain a width parameter "$Number%0[width]d$", and then we need to zero-pad them to that length
let segmentUrl = url;

if (url.includes('$Time$')) {
if (segmentUrl.includes('$Time$')) {
segmentUrl = segmentUrl.replace('$Time$', reqSegmentIndexOrTimeStr);
} else {
segmentUrl = segmentUrl
Expand Down
1 change: 1 addition & 0 deletions src/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export function proxyPathBuilder(
if (!urlSearchParams) {
return '';
}
itemUri.replace('-', '/');
const allQueries = new URLSearchParams(urlSearchParams);
let sourceItemURL = '';
// Do not build an absolute source url If ItemUri is already an absolut url.
Expand Down

0 comments on commit 1dc8f20

Please sign in to comment.