Merge pull request #792 from alexte/develop
Episodes with a PlaybackCompletionDate should be delete before those without.
This commit is contained in:
commit
69c9608df2
@ -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…
x
Reference in New Issue
Block a user