diff options
author | Guillaume Emont <guijemont@igalia.com> | 2011-06-16 19:06:21 +0200 |
---|---|---|
committer | Juan A. Suarez Romero <jasuarez@igalia.com> | 2011-06-20 09:59:05 +0000 |
commit | 85c515215d011cc58fba1059b4a8286b9a663ebc (patch) | |
tree | d5a6a528ae6afe3f18d7ca8dbf089005ef2c2ae8 | |
parent | 3ac8b6e2ebcdb604ba55a9e70e07097c208355c8 (diff) | |
download | grilo-plugins-85c515215d011cc58fba1059b4a8286b9a663ebc.tar.gz |
podcasts: fix first retrieval of feed content
Check whether the last_refreshed value for this feed had been set. If not,
trigger a refresh.
-rw-r--r-- | 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)); |