Hotfix: Do not delete episodes
This commit is contained in:
parent
554aa33478
commit
02caa29faf
|
@ -833,6 +833,9 @@ public class UserPreferences {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static EpisodeCleanupAlgorithm getEpisodeCleanupAlgorithm() {
|
public static EpisodeCleanupAlgorithm getEpisodeCleanupAlgorithm() {
|
||||||
|
if (!isEnableAutodownload()) {
|
||||||
|
return new APNullCleanupAlgorithm();
|
||||||
|
}
|
||||||
int cleanupValue = getEpisodeCleanupValue();
|
int cleanupValue = getEpisodeCleanupValue();
|
||||||
if (cleanupValue == EPISODE_CLEANUP_QUEUE) {
|
if (cleanupValue == EPISODE_CLEANUP_QUEUE) {
|
||||||
return new APQueueCleanupAlgorithm();
|
return new APQueueCleanupAlgorithm();
|
||||||
|
@ -844,7 +847,7 @@ public class UserPreferences {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getEpisodeCleanupValue() {
|
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) {
|
public static void setEpisodeCleanupValue(int episodeCleanupValue) {
|
||||||
|
|
Loading…
Reference in New Issue