diff --git a/src/manifests/handlers/dash/segment.ts b/src/manifests/handlers/dash/segment.ts index cf23201..87c2ec8 100644 --- a/src/manifests/handlers/dash/segment.ts +++ b/src/manifests/handlers/dash/segment.ts @@ -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 diff --git a/src/shared/utils.ts b/src/shared/utils.ts index 7da175b..9e99c8d 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -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.