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:
Alexander Terczka 2015-05-06 12:47:05 +02:00
parent 9c6c218aa1
commit c3a67ed881
1 changed files with 2 additions and 2 deletions

View File

@ -41,10 +41,10 @@ public class APCleanupAlgorithm implements EpisodeCleanupAlgorithm<Integer> {
Date r = rhs.getMedia().getPlaybackCompletionDate();
if (l == null) {
l = new Date(0);
l = new Date();
}
if (r == null) {
r = new Date(0);
r = new Date();
}
return l.compareTo(r);
}