* added null checks and make sure to verify serienjunkies data
This commit is contained in:
parent
79bbb75edf
commit
649a9f1e4d
|
@ -354,6 +354,10 @@ public enum EpisodeMetrics implements SimilarityMetric {
|
||||||
|
|
||||||
|
|
||||||
protected static String normalizeObject(Object object) {
|
protected static String normalizeObject(Object object) {
|
||||||
|
if (object == null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
String result = transformCache.get(object);
|
String result = transformCache.get(object);
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
return result;
|
return result;
|
||||||
|
|
|
@ -138,6 +138,11 @@ public class SerienjunkiesClient extends AbstractEpisodeListProvider {
|
||||||
title = german;
|
title = german;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// enforce sanity
|
||||||
|
if (title == null) {
|
||||||
|
title = "";
|
||||||
|
}
|
||||||
|
|
||||||
episodes.add(new Episode(seriesName, series.getStartDate(), season, episode, title, i + 1, null, airdate));
|
episodes.add(new Episode(seriesName, series.getStartDate(), season, episode, title, i + 1, null, airdate));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue