mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-02 08:25:02 -04:00
* 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
|
||||
public long getTimeStamp(Object object) {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user