Skip to content

Commit

Permalink
Rename pathnameCaseSensitive to originalPathname
Browse files Browse the repository at this point in the history
  • Loading branch information
Loic-Dumas committed Jan 6, 2025
1 parent ee5b828 commit fe3e00b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/main/resources/deeplink/v1/parsePlayUrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ function parseForPlayApp(scheme, hostname, pathname, queryParams, anchor) {
pathname = pathname.slice(0, -1)
}

hostnameCaseSensitive = hostname
pathnameCaseSensitive = pathname
originalPathname = pathname

// Case insensitive
hostname = hostname.toLowerCase();
Expand Down Expand Up @@ -265,7 +264,7 @@ function parseForPlayApp(scheme, hostname, pathname, queryParams, anchor) {
}

if (mediaType) {
var mediaId = pathnameCaseSensitive.split("/").slice(-1)[0];
var mediaId = originalPathname.split("/").slice(-1)[0];
if (mediaId) {
var startTime = queryParams["startTime"];
return openMedia(server, bu, mediaType, mediaId, startTime);
Expand Down
5 changes: 2 additions & 3 deletions src/main/resources/deeplink/v2/parsePlayUrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ function parseForPlayApp(scheme, hostname, pathname, queryParams, anchor, suppor
pathname = pathname.slice(0, -1)
}

hostnameCaseSensitive = hostname
pathnameCaseSensitive = pathname
originalPathname = pathname

// Case insensitive
hostname = hostname.toLowerCase();
Expand Down Expand Up @@ -258,7 +257,7 @@ function parseForPlayApp(scheme, hostname, pathname, queryParams, anchor, suppor
}

if (mediaType) {
var mediaId = pathnameCaseSensitive.split("/").slice(-1)[0];
var mediaId = originalPathname.split("/").slice(-1)[0];
if (mediaId) {
var startTime = queryParams["startTime"];
return openMedia(server, bu, mediaType, mediaId, startTime);
Expand Down

0 comments on commit fe3e00b

Please sign in to comment.