[rhythmbox] podcast: only consider new episodes for automatic download
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] podcast: only consider new episodes for automatic download
- Date: Tue, 21 Jun 2022 12:00:53 +0000 (UTC)
commit 01731a46f7ecdcf443c8862f19eed8e42d37de27
Author: Jonathan Matthew <jonathan d14n org>
Date: Tue Jun 21 21:20:56 2022 +1000
podcast: only consider new episodes for automatic download
Fixes: #1985
podcast/rb-podcast-manager.c | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)
---
diff --git a/podcast/rb-podcast-manager.c b/podcast/rb-podcast-manager.c
index c0dd5aa6f..aec4e0411 100644
--- a/podcast/rb-podcast-manager.c
+++ b/podcast/rb-podcast-manager.c
@@ -1537,23 +1537,24 @@ rb_podcast_manager_add_parsed_feed (RBPodcastManager *pd, RBPodcastChannel *data
if (status == RB_PODCAST_FEED_UPDATE_UNCHANGED) {
status = RB_PODCAST_FEED_UPDATE_UPDATED;
}
- }
- if (post_entry && item->pub_date >= new_last_post) {
- switch (download_mode) {
- case DOWNLOAD_NEWEST:
- if (item->pub_date > new_last_post) {
- g_list_free (download_entries);
- download_entries = NULL;
+ if (item->pub_date >= new_last_post) {
+ switch (download_mode) {
+ case DOWNLOAD_NEWEST:
+ if (item->pub_date > new_last_post) {
+ g_list_free (download_entries);
+ download_entries = NULL;
+ }
+ new_last_post = item->pub_date;
+ break;
+ case DOWNLOAD_NONE:
+ case DOWNLOAD_NEW:
+ break;
}
- new_last_post = item->pub_date;
- break;
- case DOWNLOAD_NONE:
- case DOWNLOAD_NEW:
- break;
+ download_entries = g_list_prepend (download_entries, post_entry);
}
- download_entries = g_list_prepend (download_entries, post_entry);
- }
+ }
+
}
if (download_mode != DOWNLOAD_NONE) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]