[rhythmbox] podcast: podcast rhythmdb entries can be empty strings



commit a2ba28ca220540585d1a17ba53aca59de62da668
Author: crvi <crvisqr gmail com>
Date:   Sat Feb 15 12:38:00 2020 +0530

    podcast: podcast rhythmdb entries can be empty strings
    
    Closes: #1771

 podcast/rb-feed-podcast-properties-dialog.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/podcast/rb-feed-podcast-properties-dialog.c b/podcast/rb-feed-podcast-properties-dialog.c
index f72e028f1..f7fb07b8d 100644
--- a/podcast/rb-feed-podcast-properties-dialog.c
+++ b/podcast/rb-feed-podcast-properties-dialog.c
@@ -318,11 +318,11 @@ rb_feed_podcast_properties_dialog_update_summary (RBFeedPodcastPropertiesDialog
 
        summary = rhythmdb_entry_get_string (dialog->priv->current_entry,
                                             RHYTHMDB_PROP_SUMMARY);
-       if (summary == NULL) {
+       if (summary == NULL || summary[0] == '\0') {
                summary = rhythmdb_entry_get_string (dialog->priv->current_entry,
                                                     RHYTHMDB_PROP_DESCRIPTION);
        }
-       if (summary == NULL) {
+       if (summary == NULL || summary[0] == '\0') {
                summary = rhythmdb_entry_get_string (dialog->priv->current_entry,
                                                     RHYTHMDB_PROP_SUBTITLE);
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]