
mServer.crawler.sender.orf.OrfVideoInfoDTO 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.orf;
import java.util.EnumMap;
import java.util.Map;
import mServer.crawler.sender.newsearch.Qualities;
public class OrfVideoInfoDTO {
private final Map videoUrls;
private String subtitleUrl;
public OrfVideoInfoDTO() {
videoUrls = new EnumMap<>(Qualities.class);
}
public Qualities getDefaultQuality() {
if (videoUrls.containsKey(Qualities.NORMAL)) {
return Qualities.NORMAL;
}
return videoUrls.keySet().iterator().next();
}
public String getDefaultVideoUrl() {
return videoUrls.get(getDefaultQuality());
}
public String getSubtitleUrl() {
return subtitleUrl;
}
public Map getVideoUrls() {
return videoUrls;
}
public String put(final Qualities key, final String value) {
return videoUrls.put(key, value);
}
public void setSubtitleUrl(final String subtitleUrl) {
this.subtitleUrl = subtitleUrl;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy