Skip to content

Commit

Permalink
Merge pull request #868 from mediathekview/dev-fix-funk
Browse files Browse the repository at this point in the history
added funk core service translation
  • Loading branch information
codingPF authored Dec 20, 2022
2 parents 7f6b382 + 0fc8c70 commit bcfbf92
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public abstract class AbstractFunkElementDeserializer<T>
private static final String ATTRIBUTE_SIZE = "size";
private static final String ATTRIBUTE_NUMBER = "number";
private static final String ATTRIBUTE_TOTAL = "totalElements";
private static final String FUNK_CORE_SERVICE = "funk-core-service.default.svc";
private static final String FUNK_CORE_SERVICE_HOST = "www.funk.net/api";
protected final Optional<AbstractCrawler> crawler;

protected AbstractFunkElementDeserializer(
Expand Down Expand Up @@ -110,6 +112,8 @@ private Optional<String> getNextPageLink(
}

private String fixNextPageUrl(final String url) {
return url.replace(WRONG_URL_PART, RIGHT_URL_PART);
return url
.replace(WRONG_URL_PART, RIGHT_URL_PART)
.replace(FUNK_CORE_SERVICE, FUNK_CORE_SERVICE_HOST);
}
}

0 comments on commit bcfbf92

Please sign in to comment.