Episodes that are not played yet "getPlaybackCompletionDate()==null) should be sorted in as now and not 1.1.1970
When sorted in as "now", these episodes are delete later in auto cleanup mode, than played once.
This commit is contained in:
parent
9c6c218aa1
commit
c3a67ed881
|
@ -41,10 +41,10 @@ public class APCleanupAlgorithm implements EpisodeCleanupAlgorithm<Integer> {
|
||||||
Date r = rhs.getMedia().getPlaybackCompletionDate();
|
Date r = rhs.getMedia().getPlaybackCompletionDate();
|
||||||
|
|
||||||
if (l == null) {
|
if (l == null) {
|
||||||
l = new Date(0);
|
l = new Date();
|
||||||
}
|
}
|
||||||
if (r == null) {
|
if (r == null) {
|
||||||
r = new Date(0);
|
r = new Date();
|
||||||
}
|
}
|
||||||
return l.compareTo(r);
|
return l.compareTo(r);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue