Add offline podcast downloads and release 0.5.3

This commit is contained in:
ab committed 2026-11-22 15:27:40 +02:00
1 parent 3cd6d94895
commit 5aef2cb1e7
22 files changed
+519 -17

No files matched your search

+5
View File
@@ -57,6 +57,11 @@ pub fn draw(frame: &mut Frame, state: &AppState) {
selected = items.len();
}
let (label, value, enabled) = match row {
SettingsRow::PodcastRetention => (
"Podcast downloads: keep days".into(),
state.podcast_retention_days.to_string(),
true,
),
SettingsRow::MusicDirectory => (
"Music save directory".into(),
if state.music_dir_changing {
+11
View File
@@ -652,6 +652,17 @@ fn draw_episode_row(
_ => String::new(),
};
let mut title = episode.title.clone();
if state
.podcast_downloading
.contains(episode.episode_id.as_str())
{
title.push_str(" [downloading]");
} else if state
.podcast_downloads
.contains(&crate::podcasts::offline::key(episode.episode_id.as_str()))
{
title.push_str(" [offline]");
}
if !item.in_feed {
title.push_str(" (no longer in the feed)");
}