Skip to content

Commit

Permalink
Merge pull request #35 from SRGSSR/hotfix/rts-reco-url-301
Browse files Browse the repository at this point in the history
Hotfix/RTS recommendation urls requires https
  • Loading branch information
pyby authored Aug 30, 2019
2 parents de988cd + 6d081e2 commit 73d2f82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>ch.srgssr</groupId>
<artifactId>playfff</artifactId>
<version>15</version>
<version>16</version>
<packaging>jar</packaging>

<name>pfff</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ else if (index == -1 && clipUrns.size() == 0) {
}

private RecommendedList rtsVideoRecommendedList(String purpose, String urn, boolean standalone) {
UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.newInstance().scheme("http")
UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.newInstance().scheme("https")
.host("peach.ebu.io").path("api/v1/chrts/continuous_playback_mobile");
uriComponentsBuilder.queryParam("urn", urn);
uriComponentsBuilder.queryParam("purpose", purpose);
Expand All @@ -183,7 +183,7 @@ private RecommendedList rtsVideoRecommendedList(String purpose, String urn, bool
}

public RecommendedList rtsPlayHomePersonalRecommendation(String userId) {
UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.newInstance().scheme("http")
UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.newInstance().scheme("https")
.host("peach.ebu.io").path("api/v1/chrts/play_home_personal_rec");
uriComponentsBuilder.queryParam("user_id", userId);
UriComponents url = uriComponentsBuilder.build();
Expand Down

0 comments on commit 73d2f82

Please sign in to comment.