Merge pull request #792 from alexte/develop

Episodes with a PlaybackCompletionDate should be delete before those without.
This commit is contained in:
Tom Hennen 2015-05-08 18:16:05 -04:00
commit 69c9608df2
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);
}