Skip to content

Commit

Permalink
ARTE: fix host in next pages
Browse files Browse the repository at this point in the history
  • Loading branch information
alex1702 committed Feb 18, 2025
2 parents 9953f5d + bea3ff0 commit 3a916be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
group = 'de.mediathekview'
archivesBaseName = "MServer"
version = '3.1.245'
version = '3.1.246'

def jarName = 'MServer.jar'
def mainClass = 'mServer.Main'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ public abstract class ArteListBaseDeserializer {
private static final String JSON_ELEMENT_NEXT = "next";

private static String buildUrl(String nextUrl) {
final String baseUrl = UrlUtils.getBaseUrl(nextUrl);
return UrlUtils.addDomainIfMissing(
nextUrl
.replace("/api/emac/", "/api/rproxy/emac/")
// fix non reachable host
.replace("api-internal.infra-priv.arte.tv", "www.arte.tv")
.replace(baseUrl, "https://www.arte.tv")
, "https://www.arte.tv");
}

Expand Down

0 comments on commit 3a916be

Please sign in to comment.