* exclude episodes without airdate data from ReleaseDate metric matching step
This commit is contained in:
parent
a248021ebf
commit
03cb4febd1
@ -299,7 +299,11 @@ public enum EpisodeMetrics implements SimilarityMetric {
|
|||||||
@Override
|
@Override
|
||||||
public long getTimeStamp(Object object) {
|
public long getTimeStamp(Object object) {
|
||||||
if (object instanceof Episode) {
|
if (object instanceof Episode) {
|
||||||
return ((Episode) object).airdate().getTimeStamp();
|
try {
|
||||||
|
return ((Episode) object).airdate().getTimeStamp();
|
||||||
|
} catch (RuntimeException e) {
|
||||||
|
return -1; // some episodes may not have airdate defined
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return super.getTimeStamp(object);
|
return super.getTimeStamp(object);
|
||||||
|
Loading…
Reference in New Issue
Block a user