mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-10 06:20:27 -04:00
* only recognize positive {age} (in days) values
This commit is contained in:
parent
bd81291ca5
commit
6c1bbae431
@ -185,7 +185,10 @@ public class MediaBindingBean {
|
|||||||
public Number getAgeInDays() {
|
public Number getAgeInDays() {
|
||||||
SimpleDate releaseDate = getReleaseDate();
|
SimpleDate releaseDate = getReleaseDate();
|
||||||
if (releaseDate != null) {
|
if (releaseDate != null) {
|
||||||
return TimeUnit.MILLISECONDS.toDays(System.currentTimeMillis() - releaseDate.getTimeStamp());
|
long days = TimeUnit.MILLISECONDS.toDays(System.currentTimeMillis() - releaseDate.getTimeStamp());
|
||||||
|
if (days >= 0) {
|
||||||
|
return days;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user