summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiscomfitor <michael.blumenkrantz@gmail.com>2013-10-20 12:04:33 +0100
committerdiscomfitor <michael.blumenkrantz@gmail.com>2013-10-20 12:04:33 +0100
commit2e68b176f3ebd3b026c9515f8c53ef387fc366ce (patch)
tree91f4d6f292524d2c10f68ca73a978936bf3aa6c0
parent508bb9a8b5b8aab13923e8a4d7a42e5281540d2b (diff)
don't display broken feedsHEADmaster
-rw-r--r--src/utils/erssd-config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/erssd-config.c b/src/utils/erssd-config.c
index 1f89577..3babb2e 100644
--- a/src/utils/erssd-config.c
+++ b/src/utils/erssd-config.c
@@ -119,6 +119,7 @@ _feed_update(Rss_Feed *feed, Eina_Bool refresh)
119{ 119{
120 azy_rss_free(feed->rss); 120 azy_rss_free(feed->rss);
121 feed->rss = erssd_util_eet_feed_get(ef_cache[feed->conn], feed->url); 121 feed->rss = erssd_util_eet_feed_get(ef_cache[feed->conn], feed->url);
122 if (!feed->rss) return;
122 if (feed->rss) 123 if (feed->rss)
123 { 124 {
124 if (eina_stringshare_replace(&feed->img_url, azy_rss_img_url_get(feed->rss)) && feed->img_url) 125 if (eina_stringshare_replace(&feed->img_url, azy_rss_img_url_get(feed->rss)) && feed->img_url)
@@ -162,6 +163,11 @@ _feed_new(Eina_Stringshare *url, int conn)
162 _feed_items_update(feed); 163 _feed_items_update(feed);
163 _feed_update(feed, 0); 164 _feed_update(feed, 0);
164 } 165 }
166 if (!feed->rss)
167 {
168 eina_hash_del_by_key(feeds[conn], feed->url);
169 return NULL;
170 }
165 feed->list_item = elm_genlist_item_append(feed_list, &feed_itc, feed, NULL, 0, _feed_selected_cb, feed); 171 feed->list_item = elm_genlist_item_append(feed_list, &feed_itc, feed, NULL, 0, _feed_selected_cb, feed);
166 feed->conn = conn; 172 feed->conn = conn;
167 return feed; 173 return feed;