Hotfix: Do not delete episodes

This commit is contained in:
ByteHamster 2019-11-24 09:47:40 +01:00
parent 554aa33478
commit 02caa29faf
1 changed files with 4 additions and 1 deletions

View File

@ -833,6 +833,9 @@ public class UserPreferences {
}
public static EpisodeCleanupAlgorithm getEpisodeCleanupAlgorithm() {
if (!isEnableAutodownload()) {
return new APNullCleanupAlgorithm();
}
int cleanupValue = getEpisodeCleanupValue();
if (cleanupValue == EPISODE_CLEANUP_QUEUE) {
return new APQueueCleanupAlgorithm();
@ -844,7 +847,7 @@ public class UserPreferences {
}
public static int getEpisodeCleanupValue() {
return Integer.parseInt(prefs.getString(PREF_EPISODE_CLEANUP, "-1"));
return Integer.parseInt(prefs.getString(PREF_EPISODE_CLEANUP, "" + EPISODE_CLEANUP_NULL));
}
public static void setEpisodeCleanupValue(int episodeCleanupValue) {