Add a retention timer for podcast
🏗️ Build Plugin / build (push) Successful in 2m1s
🧪 Test Plugin / test (push) Successful in 1m0s
🚀 Release Plugin / build-and-release (push) Successful in 2m1s

This commit is contained in:
2025-12-30 16:20:26 +01:00
parent c54221fba2
commit d890c11a9b
6 changed files with 125 additions and 1 deletions
@@ -180,6 +180,11 @@ public class JellypodController : ControllerBase
podcast.MaxEpisodesToKeep = request.MaxEpisodesToKeep.Value;
}
if (request.MaxEpisodeAgeDays.HasValue)
{
podcast.MaxEpisodeAgeDays = request.MaxEpisodeAgeDays.Value;
}
await _storageService.UpdatePodcastAsync(podcast).ConfigureAwait(false);
return Ok(podcast);
}
@@ -14,4 +14,9 @@ public class UpdatePodcastRequest
/// Gets or sets the maximum episodes to keep.
/// </summary>
public int? MaxEpisodesToKeep { get; set; }
/// <summary>
/// Gets or sets the maximum age in days for episodes (0 = use global, -1 = unlimited).
/// </summary>
public int? MaxEpisodeAgeDays { get; set; }
}