diff --git a/docs/RECOMMENDATION.md b/docs/RECOMMENDATION.md
index a985668..78d020c 100644
--- a/docs/RECOMMENDATION.md
+++ b/docs/RECOMMENDATION.md
@@ -25,7 +25,7 @@ The API doesn't not support paginations, therefore mobile applications didn't im
| RTR audios | Pfff RE | Pfff RE |
| RTR videos | Pfff RE | Pfff RE |
| RTS audios | Pfff RE | Pfff RE |
-| RTS videos | Pfff RE | Pfff RE |
+| RTS videos | **RTS RE** | **RTS RE** |
| SRF audios | Pfff RE | **SRF RE** |
| SRF videos | Pfff RE | **SRF RE** |
| SWI videos | Pfff RE | Pfff RE |
diff --git a/pom.xml b/pom.xml
index 8052e7a..2518a3d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,7 +12,7 @@
ch.srgssr
playfff
- 29
+ 30
jar
pfff
diff --git a/src/main/java/ch/srgssr/playfff/service/RecommendationService.java b/src/main/java/ch/srgssr/playfff/service/RecommendationService.java
index b28cf5c..e20f39e 100644
--- a/src/main/java/ch/srgssr/playfff/service/RecommendationService.java
+++ b/src/main/java/ch/srgssr/playfff/service/RecommendationService.java
@@ -37,20 +37,32 @@ public RecommendedList getRecommendedUrns(String purpose, String urnString, bool
IlUrn urn = new IlUrn(urnString);
if (purpose.equals("relatedContent")) {
switch (urn.getMam()) {
+ case RTS:
+ if (urn.getMediaType() == MediaType.VIDEO) {
+ return rtsVideoRecommendedList(purpose, urnString, standalone);
+ } else if (urn.getMediaType() == MediaType.AUDIO) {
+ return pfffRecommendedList(urnString, MediaType.AUDIO, standalone);
+ }
+ break;
case SRF:
return srfRecommendedList(purpose, urnString, standalone);
case RSI:
case RTR:
- case RTS:
case SWI:
return pfffRecommendedList(urnString, urn.getMediaType(), standalone);
}
}
else {
switch (urn.getMam()) {
+ case RTS:
+ if (urn.getMediaType() == MediaType.VIDEO) {
+ return rtsVideoRecommendedList(purpose, urnString, standalone);
+ } else if (urn.getMediaType() == MediaType.AUDIO) {
+ return pfffRecommendedList(urnString, MediaType.AUDIO, standalone);
+ }
+ break;
case RSI:
case RTR:
- case RTS:
case SRF:
case SWI:
return pfffRecommendedList(urnString, urn.getMediaType(), standalone);
diff --git a/src/test/java/ch/srgssr/playfff/controller/RecommendationServiceTests.java b/src/test/java/ch/srgssr/playfff/controller/RecommendationServiceTests.java
index bfbe3dd..8663bf1 100644
--- a/src/test/java/ch/srgssr/playfff/controller/RecommendationServiceTests.java
+++ b/src/test/java/ch/srgssr/playfff/controller/RecommendationServiceTests.java
@@ -24,7 +24,7 @@ public void getRecommendedUrnsContinuousplaybackRTSVideoTest() {
RecommendedList recommendedList = recommendationService.getRecommendedUrns(purpose, mediaURN, standalone);
Assert.assertNotNull(recommendedList.getRecommendationId());
- Assert.assertTrue(recommendedList.getRecommendationId().startsWith("ch.srgssr.playfff:EpisodeComposition/LatestByShow/"));
+ Assert.assertTrue(recommendedList.getRecommendationId().startsWith("net.azure-api.rts-datalab:"));
assertValidList(recommendedList);
}
@@ -36,7 +36,7 @@ public void getRecommendedUrnsContinuousplaybackStandaloneRTSVideoTest() {
RecommendedList recommendedList = recommendationService.getRecommendedUrns(purpose, mediaURN, standalone);
Assert.assertNotNull(recommendedList.getRecommendationId());
- Assert.assertTrue(recommendedList.getRecommendationId().startsWith("ch.srgssr.playfff:EpisodeComposition/LatestByShow/"));
+ Assert.assertTrue(recommendedList.getRecommendationId().startsWith("net.azure-api.rts-datalab:"));
assertValidList(recommendedList);
}