
mServer.crawler.sender.wdr.WdrDeserializerBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of MServer Show documentation
Show all versions of MServer Show documentation
The crawler for mediathekview/MediathekView
package mServer.crawler.sender.wdr;
public abstract class WdrDeserializerBase extends HtmlDeserializerBase {
private static final String URL_ROOT = "http://www1.wdr.de";
protected enum UrlType {
None,
OverviewPage,
VideoPage
}
protected String addDomainIfNecessary(String url) {
if(url != null && !url.isEmpty()) {
if(url.startsWith("/")) {
url = URL_ROOT + url;
}
}
return url;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy