[PATCH 16/18] flickr: Do not add empty descriptions nor titles
- From: "Juan A. Suarez Romero" <jasuarez igalia com>
- To: grilo-list gnome org
- Subject: [PATCH 16/18] flickr: Do not add empty descriptions nor titles
- Date: Wed, 7 Jul 2010 18:20:11 +0200
---
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 bd2af15..22adccc 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);
}
--
1.7.0.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]