[grilo-plugins] podcasts: fix first retrieval of feed content
- From: Guillaume JÃrÃme Emont <guijemont src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] podcasts: fix first retrieval of feed content
- Date: Fri, 17 Jun 2011 08:31:59 +0000 (UTC)
commit 4c7c33ba6c485dbbc599ab56ce7ca635db3ad9d8
Author: Guillaume Emont <guijemont igalia com>
Date: Thu Jun 16 19:06:21 2011 +0200
podcasts: fix first retrieval of feed content
Check whether the last_refreshed value for this feed had been set. If not,
trigger a refresh.
src/media/podcasts/grl-podcasts.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/media/podcasts/grl-podcasts.c b/src/media/podcasts/grl-podcasts.c
index bbfde22..1855ce2 100644
--- a/src/media/podcasts/grl-podcasts.c
+++ b/src/media/podcasts/grl-podcasts.c
@@ -1386,7 +1386,7 @@ produce_podcast_contents (OperationSpec *os)
os->last_refreshed = lr.tv_sec;
g_get_current_time (&now);
now.tv_sec -= GRL_PODCASTS_SOURCE (os->source)->priv->cache_time;
- if (now.tv_sec >= lr.tv_sec) {
+ if (lr_str == NULL || now.tv_sec >= lr.tv_sec) {
/* We have to read the podcast feed again */
GRL_DEBUG ("Refreshing podcast '%s'...", os->media_id);
url = g_strdup ((gchar *) sqlite3_column_text (sql_stmt, PODCAST_URL));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]