[PATCH 16/18] 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 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]