[grilo-plugins] flickr: Do not add empty descriptions nor titles
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] flickr: Do not add empty descriptions nor titles
- Date: Thu, 15 Jul 2010 08:22:51 +0000 (UTC)
commit e1c8b27a4cf57cc14d3225ee3fad984d43df20f9
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Wed Jul 7 12:25:04 2010 +0200
flickr: Do not add empty descriptions nor titles
src/flickr/grl-flickr.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/flickr/grl-flickr.c b/src/flickr/grl-flickr.c
index 4433ca4..18cb63e 100644
--- a/src/flickr/grl-flickr.c
+++ b/src/flickr/grl-flickr.c
@@ -314,7 +314,7 @@ update_media (GrlMedia *media, GHashTable *photo)
grl_media_set_date (media, date);
}
- if (description) {
+ if (description && description[0] != '\0') {
grl_media_set_description (media, description);
}
@@ -327,7 +327,7 @@ update_media (GrlMedia *media, GHashTable *photo)
g_free (thumbnail);
}
- if (title) {
+ if (title && title[0] != '\0') {
grl_media_set_title (media, title);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]