Skip to content

Commit

Permalink
Update ParsePlayUrl JS to version 37 with first support for micro pag…
Browse files Browse the repository at this point in the history
…es (#85)
  • Loading branch information
pyby authored Feb 7, 2024
1 parent 1d71a6e commit 475c3cb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/main/resources/deeplink/v1/parsePlayUrl.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// parsePlayUrl

var parsePlayUrlVersion = 36;
var parsePlayUrlVersion = 37;
var parsePlayUrlBuild = "mmf";

if (!console) {
Expand Down Expand Up @@ -746,6 +746,15 @@ function parseForPlayApp(scheme, hostname, pathname, queryParams, anchor) {
return openURL(server, bu, scheme, hostname, pathname, queryParams, anchor);
}

/**
* Catch play micro pages urls
*
* Ex: https://www.srf.ch/play/tv/micropages/test-?pageId=3c2674b9-37a7-4e76-9398-bb710bd135ee
*/
if (pathname.includes("/micropages/")) {
return openURL(server, bu, scheme, hostname, pathname, queryParams, anchor);
}

/**
* Catch play parameters urls
*
Expand Down
11 changes: 10 additions & 1 deletion src/main/resources/deeplink/v2/parsePlayUrl.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// parsePlayUrl

var parsePlayUrlVersion = 36;
var parsePlayUrlVersion = 37;
var parsePlayUrlBuild = "mmf";

if (!console) {
Expand Down Expand Up @@ -711,6 +711,15 @@ function parseForPlayApp(scheme, hostname, pathname, queryParams, anchor) {
return openURL(server, bu, scheme, hostname, pathname, queryParams, anchor);
}

/**
* Catch play micro pages urls
*
* Ex: https://www.srf.ch/play/tv/micropages/test-?pageId=3c2674b9-37a7-4e76-9398-bb710bd135ee
*/
if (pathname.includes("/micropages/")) {
return openURL(server, bu, scheme, hostname, pathname, queryParams, anchor);
}

/**
* Catch play parameters urls
*
Expand Down

0 comments on commit 475c3cb

Please sign in to comment.