From 1a0f39b94b5e03379edcd03caa96aa86e7ab7750 Mon Sep 17 00:00:00 2001 From: Mike Sharov Date: Sat, 17 Apr 2021 14:41:31 -0400 Subject: [PATCH] Use title when no custom_title specified A newly added feed has no custom title, but it will always have a title downloaded with the feed XML. Save this title into urls.opml. Otherwise the newly added feed will not be loaded on the next snownews launch. --- feedio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/feedio.c b/feedio.c index 1779744..8e48c65 100644 --- a/feedio.c +++ b/feedio.c @@ -250,6 +250,8 @@ static void WriteFeedUrls (void) fputs ("\tcustom_title) fprintf (urlfile, " text=\"%s\"", f->custom_title); + else if (f->title) + fprintf (urlfile, " text=\"%s\"", f->title); if (f->feedurl) fprintf (urlfile, " xmlUrl=\"%s\"", f->feedurl); if (f->feedcategories) {