[rhythmbox] podcast: consider feed as parsed only on parse completion
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] podcast: consider feed as parsed only on parse completion
- Date: Tue, 1 Jun 2021 11:59:13 +0000 (UTC)
commit 994a448b8ef0fd90ccad5208248cd8a594a2ceca
Author: crvi <crvisqr gmail com>
Date: Mon Mar 8 01:11:44 2021 +0530
podcast: consider feed as parsed only on parse completion
In the old design, we had a separate channel for parsing the selected
feed in search results. This channel eventually replaced the search
model channel on parse completion. In the new design, parsing code and
feed model use a shared channel, which causes the feed model channel
to have partial 'posts', when parsing is in progress. So, rather than
using 'posts' field, we use the parse 'status' field to check whether
parsing has been completed.
Closes: #1849
podcast/rb-podcast-add-dialog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/podcast/rb-podcast-add-dialog.c b/podcast/rb-podcast-add-dialog.c
index 111e5f687..051006d99 100644
--- a/podcast/rb-podcast-add-dialog.c
+++ b/podcast/rb-podcast-add-dialog.c
@@ -494,7 +494,7 @@ subscribe_selected_feed (RBPodcastAddDialog *dialog)
&dialog->priv->selected_feed,
FEED_COLUMN_PARSED_FEED, &channel,
-1);
- if (channel->posts != NULL) {
+ if (channel->status == RB_PODCAST_PARSE_STATUS_SUCCESS) {
rb_podcast_manager_add_parsed_feed (dialog->priv->podcast_mgr, channel);
} else {
rb_podcast_manager_subscribe_feed (dialog->priv->podcast_mgr, channel->url, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]