Skip to content

Commit

Permalink
Deeplink: RSI livestream tab url in parsePlayUrl.js (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
Loic-Dumas authored Mar 22, 2024
1 parent f61b722 commit a1982b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/main/resources/deeplink/v1/parsePlayUrl.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// parsePlayUrl

var parsePlayUrlVersion = 40;
var parsePlayUrlVersion = 41;
var parsePlayUrlBuild = "mmf";

if (!console) {
Expand Down Expand Up @@ -456,8 +456,9 @@ function parseForPlayApp(scheme, hostname, pathname, queryParams, anchor) {
* Ex: https://www.rtr.ch/play/tv/rtr-livestreams
* Ex: https://www.rts.ch/play/tv/rts-livestreams
* Ex: https://www.srf.ch/play/tv/sport-livestreams
* Ex: https://www.rsi.ch/play/tv/streaming
*/
if (pathname.endsWith("-livestreams")) {
if (pathname.endsWith("-livestreams") || pathname.endsWith("streaming")) {
// Returns livestreams homepage
return openPage(server, bu, "livestreams", null, null);
}
Expand Down
7 changes: 4 additions & 3 deletions src/main/resources/deeplink/v2/parsePlayUrl.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// parsePlayUrl

var parsePlayUrlVersion = 40;
var parsePlayUrlVersion = 41;
var parsePlayUrlBuild = "mmf";

if (!console) {
Expand All @@ -18,7 +18,7 @@ var hostnameMedia = "media";
var hostnameMicropage = "micropage";
var hostnameSearch = "search";
var hostnameSection = "section";
var hostnameShow = "show";
var hostnameShow = "show";
var hostnameTopic = "topic";

function parseForPlayApp(scheme, hostname, pathname, queryParams, anchor, supportedAppHostnames) {
Expand Down Expand Up @@ -445,8 +445,9 @@ function parseForPlayApp(scheme, hostname, pathname, queryParams, anchor, suppor
* Ex: https://www.rtr.ch/play/tv/rtr-livestreams
* Ex: https://www.rts.ch/play/tv/rts-livestreams
* Ex: https://www.srf.ch/play/tv/sport-livestreams
* Ex: https://www.rsi.ch/play/tv/streaming
*/
if (pathname.endsWith("-livestreams")) {
if (pathname.endsWith("-livestreams") || pathname.endsWith("streaming")) {
// Returns livestreams homepage
return openLivestreamsHomePage(server, bu);
}
Expand Down

0 comments on commit a1982b5

Please sign in to comment.